Run it
Copy the script and paste it into your executor.
Players = :()
player = Players.LocalPlayer
CELL_SIZE =
CELL_HEIGHT =
MINE_CHANCE =
pointA, pointB
fieldFolder = .(, )
fieldFolder.Name = .. player.Name
gui = .(, player.PlayerGui)
gui.Name =
toggleBtn = .(, gui)
toggleBtn.Size = .(,)
toggleBtn.Position = .(,)
toggleBtn.Text =
toggleBtn.ZIndex =
panel = .(, gui)
panel.Size = .(,)
panel.Position = .(,)
panel.Visible =
panel.ZIndex =
(txt, y)
b = .(, panel)
b.Size = .(,)
b.Position = .(,y)
b.Text = txt
b
btnA = (,)
btnB = (,)
btnStart = (,)
btnClose = (,)
toggleBtn.MouseButton1Click:(()
panel.Visible = panel.Visible
)
btnClose.MouseButton1Click:(()
panel.Visible =
)
(cell)
t =
h =
s = cell.Size
borders = {
{.(s.X, t, t), .(, h, s.Z/)},
{.(s.X, t, t), .(, h, -s.Z/)},
{.(t, t, s.Z), .(s.X/, h, )},
{.(t, t, s.Z), .(-s.X/, h, )},
}
_,data (borders)
b = .()
b.Size = data[]
b.Position = cell.Position + data[]
b.Anchored =
b.Color = .(,,)
b.Material = .Material.SmoothPlastic
b.CastShadow =
b.Parent = cell
(cell)
cell:()
cell:(, )
n = cell:()
n ==
gui = .(, cell)
gui.Size = .(,)
gui.StudsOffset = .(,,)
gui.AlwaysOnTop =
txt = .(, gui)
txt.Size = .(,)
txt.BackgroundTransparency =
txt.TextScaled =
txt.Text = (n)
txt.TextColor3 = .(,,)
txt.Font = .Font.SourceSansBold
btnA.MouseButton1Click:(()
pointA = player.Character.HumanoidRootPart.Position
)
btnB.MouseButton1Click:(()
pointB = player.Character.HumanoidRootPart.Position
)
btnStart.MouseButton1Click:(()
pointA pointB
fieldFolder:()
baseY = player.Character.HumanoidRootPart.Position.Y -
minX = .(pointA.X, pointB.X)
maxX = .(pointA.X, pointB.X)
minZ = .(pointA.Z, pointB.Z)
maxZ = .(pointA.Z, pointB.Z)
grid = {}
x = minX, maxX, CELL_SIZE
z = minZ, maxZ, CELL_SIZE
cell = .()
cell.Size = .(CELL_SIZE, CELL_HEIGHT, CELL_SIZE)
cell.Position = .(x, baseY + CELL_HEIGHT/, z)
cell.Anchored =
cell.Color = .(,,)
cell.Material = .Material.SmoothPlastic
cell.Transparency =
cell.Parent = fieldFolder
(cell)
isMine = .() < MINE_CHANCE
cell:(, isMine)
cell:(, )
.(grid, cell)
_,cell (grid)
cell:()
count =
_,other (grid)
other:()
(cell.Position - other.Position).Magnitude <= CELL_SIZE*
count +=
cell:(, count)
cell.Touched:((hit)
char = player.Character
char
hit.Parent ~= char
hum = char:()
hum
cell:()
hum.Health =
cell:()
(cell)
)
)Campo minado pra tirar tédio ou vc decide

Universal