Run it
Copy the script and paste it into your executor.
p = .Players.LocalPlayer
cam = .CurrentCamera
mouse = p:()
rs = :()
uis = :()
bs =
vd =
ww =
seed = .(, )
db = {
hp = ,
m = ,
sel = ,
inv = {Wood=, Stone=, Dirt=, Planks=, Stick=, Coal=, IronOre=, IronIngot=, Diamond=, Chest=},
pwr = ,
items = {, , , , }
}
w_f = :() .(, )
w_f.Name =
blocks = {}
parts = {}
cfg = {
Grass = {c = .(, , ), hp = , d = },
Dirt = {c = .(, , ), hp = , d = },
Stone = {c = .(, , ), hp = , d = },
Wood = {c = .(, , ), hp = , d = },
Planks = {c = .(, , ), hp = , d = },
Leaves = {c = .(, , ), hp = , d = },
Coal = {c = .(, , ), hp = , d = },
Iron = {c = .(, , ), hp = , d = },
Diamond = {c = .(, , ), hp = , d = },
Chest = {c = .(, , ), hp = , d = },
Bedrock = {c = .(, , ), hp = , d = }
}
()
.(seed)
x = -ww/, ww/
sy = .(.(x * , seed) * ) +
y = , sy
cv = .(x * , y * , seed)
cv < y >= sy -
t =
y == sy t =
y > sy - t =
y == t =
r = .(, )
r <
dp = sy - y
dp > r < t =
dp > r < t =
t =
blocks[x....y] = t
.(, ) ==
h = .(, )
i = , h blocks[x....(sy+i)] =
lx = -,
ly = , blocks[(x+lx)....(sy+h+ly)] =
gui = .(, .CoreGui)
hud = .(, gui)
hud.Size = .(, , , )
hud.Position = .(, -, , )
hud.BackgroundTransparency =
hud.BackgroundColor3 = .(,,)
(txt, pos, pnt)
b = .(, pnt)
b.Size = .(, , , )
b.Position = pos
b.Text = txt
b.BackgroundColor3 = .(, , )
b.TextColor3 = .(,,)
b.BorderSizePixel =
b
m_btn = (, .(,,,), hud)
s_btn = (..db.sel, .(,,,), hud)
c_btn = (, .(,,,), hud)
main = .(, gui)
main.Size = .(, , , )
main.Position = .(, -, , -)
main.Visible =
main.BackgroundColor3 = .(, , )
scroll = .(, main)
scroll.Size = .(, -, , -)
scroll.Position = .(, , , )
scroll.BackgroundTransparency =
.(, scroll).Padding = .(, )
recipes = {
{n=, r={Wood=}, g={Planks=}},
{n=, r={Planks=}, g={Stick=}},
{n=, r={Stick=, Stone=}, p=},
{n=, r={Stick=, IronIngot=}, p=}
}
()
_, v (scroll:()) v:() v:()
_, r (recipes)
b = .(, scroll)
b.Size = .(, , , )
b.Text = r.n
b.MouseButton1Click:(()
ok =
k, v (r.r) (db.inv[k] ) < v ok =
ok
k, v (r.r) db.inv[k] -= v
r.g k, v (r.g) db.inv[k] = (db.inv[k] ) + v
r.p db.pwr = r.p
()
)
m_btn.MouseButton1Click:(()
db.m = (db.m == )
m_btn.Text = db.m:()
m_btn.BackgroundColor3 = (db.m == ) .(,,) .(,,)
)
s_btn.MouseButton1Click:(()
i = .(db.items, db.sel)
db.sel = db.items[i % #db.items + ]
s_btn.Text = ..db.sel
)
c_btn.MouseButton1Click:(() main.Visible = main.Visible () )
curB, mt = ,
uis.InputBegan:((i, g)
g
i.UserInputType == .UserInputType.MouseButton1 i.UserInputType == .UserInputType.Touch
mouse.Target
db.m ==
mouse.Target.Parent == w_f curB = mouse.Target; mt =
(db.inv[db.sel] ) >
pz = mouse.Target.Position + (.(mouse.TargetSurface) * bs)
id = .(pz.X/bs)....math.(pz.Y/bs)
blocks[id]
blocks[id] = db.sel
db.inv[db.sel] -=
)
uis.InputEnded:((i) i.UserInputType == .UserInputType.MouseButton1 curB curB.Transparency = curB = )
rs.RenderStepped:((dt)
char = p.Character
char char:()
hrp = char.HumanoidRootPart
hrp.Position.Y < - hrp.CFrame = .(, , )
curB curB.Parent db.m ==
mt += dt
h = (cfg[curB.Name].hp ) / db.pwr
curB.Transparency = .(mt/h, , )
mt >= h
id = .(curB.Position.X/bs)....math.(curB.Position.Y/bs)
cfg[curB.Name].d db.inv[cfg[curB.Name].d] = (db.inv[cfg[curB.Name].d] ) +
blocks[id] =
curB:()
curB =
cx, cy = .(hrp.Position.X/bs), .(hrp.Position.Y/bs)
x = cx - vd, cx + vd
y = cy - vd, cy + vd
id = x....y
blocks[id] parts[id]
b = .()
b.Size = .(bs, bs, bs)
b.Position = .(x*bs, y*bs, )
b.Anchored =
b.Name = blocks[id]
b.Color = cfg[blocks[id]].c
b.Material = (blocks[id] == blocks[id] == ) .Material.Grass .Material.Slate
b.Parent = w_f
parts[id] = b
id, obj (parts)
px, py = id:()
.((px) - cx) > vd + .((py) - cy) > vd +
obj:()
parts[id] =
cam.CameraType = .CameraType.Scriptable
cam.CFrame = cam.CFrame:(.(hrp.Position.X, hrp.Position.Y + , ), )
hrp.CFrame = .(hrp.Position.X, hrp.Position.Y, ) * .(, .(), )
)
()
()
c = p.Character p.CharacterAdded:()
r = c:()
r.CFrame = .(, , )
()
p.CharacterAdded:(spawnP)
Emil2006 I'm counting on you. Я должен предупредить что скрипт сам по себе с кучей багов и недоработок Данный код доступен для свободного копирования и модификации. Буду признателен, если при использовании этого исходника в своих проектах вы укажете ссылку на мой профиль или упомянете авторство. Удачи в разработке!

Universal