Run it
Copy the script and paste it into your executor.
localTime = .()
RunService = :()
Players = :()
LocalPlayer = Players.LocalPlayer
.() :()
playerGui = LocalPlayer:()
defaultScreenGui = playerGui:()
defaultScreenGui
loadingFrame = defaultScreenGui:()
loadingFrame loadingFrame.BackgroundTransparency ==
_, connection ((loadingFrame.Quality.LowQuality.MouseButton1Down))
connection:()
RunService.Heartbeat:()
_, child (defaultScreenGui:())
child.Name ~=
child:()
child.Visible =
defaultScreenGui.ChildAdded:((child)
child.Name ~= child:()
child.Visible =
)
()
()
character = LocalPlayer.Character LocalPlayer.CharacterAdded:()
character:(, ) character:(, )
Character = ()
.(()
().Name =
character = LocalPlayer.Character LocalPlayer.CharacterAdded:()
head = character:(, )
head
customTag = head:(, )
customTag
customTag:()
customTag.PlayerName.Text = ().Name
customTag:()
customTag.MinerRank.Text =
()
)
WorldPresets = {
Cyber = {
SpawnName = ,
SellName = ,
SellPos = .(, , ),
MineX = ,
MineZ = ,
SpawnZ = ,
},
Lava = {
SpawnName = ,
SellName = ,
SellPos = .(, , ),
MineX = ,
MineZ = ,
SpawnZ = ,
}
}
MapConfig = {
SelectedWorld = ,
MaxDepth = -,
WalkY = ,
MineTopY = ,
ForcefieldX = ,
ForcefieldY = ,
RebirthCost = ,
MiningAreaSize = .(, , ),
InitialDescentSize = .(, , ),
}
activeWorld = WorldPresets[MapConfig.SelectedWorld] WorldPresets.Cyber
MapConfig.SpawnName = activeWorld.SpawnName
MapConfig.SellName = activeWorld.SellName
MapConfig.SellPos = activeWorld.SellPos
MapConfig.MineX = activeWorld.MineX
MapConfig.MineZ = activeWorld.MineZ
MapConfig.SpawnZ = activeWorld.SpawnZ
Config = {
SellThreshold = ,
InstantTeleportAfterSell = ,
TeleportDelay =
}
targetColor = .(, , )
blocksFolder = :()
(part)
part:()
part.Color = targetColor
part.Material = .Material.SmoothPlastic
_, child (part:())
child:() child:()
child:()
blocksFolder
_, descendant (blocksFolder:())
(descendant)
blocksFolder.DescendantAdded:((descendant)
.(turnBlockBlack, descendant)
)
()
()
PlayerGui = LocalPlayer:()
ScreenGui = .()
ScreenGui.Name =
ScreenGui.ResetOnSpawn =
ScreenGui.Parent = PlayerGui
MainFrame = .()
MainFrame.Name =
MainFrame.Size = .(, , , )
MainFrame.Position = .(, , , )
MainFrame.BackgroundColor3 = .(, , )
MainFrame.BorderSizePixel =
MainFrame.Parent = ScreenGui
UICorner = .()
UICorner.CornerRadius = .(, )
UICorner.Parent = MainFrame
UIStroke = .()
UIStroke.Color = .(, , )
UIStroke.Thickness =
UIStroke.Parent = MainFrame
Title = .()
Title.Size = .(, , , )
Title.BackgroundTransparency =
Title.Font = .Font.GothamBold
Title.Text =
Title.TextColor3 = .(, , )
Title.TextSize =
Title.Parent = MainFrame
(name, yPos)
Label = .()
Label.Name = name
Label.Size = .(, -, , )
Label.Position = .(, , , yPos)
Label.BackgroundTransparency =
Label.Font = .Font.GothamBold
Label.TextXAlignment = .TextXAlignment.Left
Label.TextColor3 = .(, , )
Label.TextSize =
Label.Parent = MainFrame
Label
BlocksLabel = (, )
RebirthsLabel = (, )
TokensLabel = (, )
DepthLabel = (, )
DepthCordsLabel = (, )
leaderstats = LocalPlayer:()
blocksMinedStat = leaderstats:()
rebirthsStat = leaderstats:()
tokensStat = leaderstats:() leaderstats:()
(num)
formatted = (num)
k
formatted, k = .(formatted, , )
k ==
formatted
()
BlocksLabel.Text = .. (blocksMinedStat.Value)
RebirthsLabel.Text = .. (rebirthsStat.Value)
tokensStat
TokensLabel.Text = .. (tokensStat.Value)
TokensLabel.Text =
blocksMinedStat.Changed:(UpdateUI)
rebirthsStat.Changed:(UpdateUI)
tokensStat
tokensStat.Changed:(UpdateUI)
()
TrackerContainer = .()
TrackerContainer.Name =
TrackerContainer.Parent = MainFrame
TrackerContainer.BackgroundTransparency =
TrackerContainer.Position = .(, , , )
TrackerContainer.Size = .(, -, , )
TrackerLayout = .()
TrackerLayout.Parent = TrackerContainer
TrackerLayout.SortOrder = .SortOrder.LayoutOrder
TrackerLayout.VerticalAlignment = .VerticalAlignment.Top
TrackerLayout.HorizontalAlignment = .HorizontalAlignment.Center
TrackerLayout.Padding = .(, )
(name, height, order)
card = .()
card.Name = name
card.Parent = TrackerContainer
card.BackgroundColor3 = .(, , )
card.BackgroundTransparency =
card.Size = .(, , , height)
card.LayoutOrder = order
corner = .()
corner.CornerRadius = .(, )
corner.Parent = card
stroke = .()
stroke.Color = .(, , )
stroke.Transparency =
stroke.Thickness =
stroke.Parent = card
card
CustomCard = (, , )
TimeInput = .()
TimeInput.Parent = CustomCard
TimeInput.BackgroundTransparency =
TimeInput.Position = .(, , , )
TimeInput.Size = .(, , , )
TimeInput.Font = .Font.GothamBold
TimeInput.Text =
TimeInput.PlaceholderText =
TimeInput.TextColor3 = .(, , )
TimeInput.PlaceholderColor3 = .(, , )
TimeInput.TextSize =
TimeInput.ClearTextOnFocus =
SetButton = .()
SetButton.Name =
SetButton.Parent = CustomCard
SetButton.BackgroundTransparency =
SetButton.Position = .(, , , )
SetButton.Size = .(, , , )
SetButton.Font = .Font.GothamBold
SetButton.Text =
SetButton.TextColor3 = .(, , )
SetButton.TextSize =
PresetRow = .()
PresetRow.Name =
PresetRow.Parent = TrackerContainer
PresetRow.BackgroundTransparency =
PresetRow.Size = .(, , , )
PresetRow.LayoutOrder =
(name, text, orderOffset)
btnFrame = .()
btnFrame.Name = name
btnFrame.Parent = PresetRow
btnFrame.BackgroundColor3 = .(, , )
btnFrame.BackgroundTransparency =
btnFrame.Size = .(, , , )
btnFrame.Position = .(orderOffset, , , )
corner = .()
corner.CornerRadius = .(, )
corner.Parent = btnFrame
stroke = .()
stroke.Color = .(, , )
stroke.Transparency =
stroke.Thickness =
stroke.Parent = btnFrame
btn = .()
btn.Parent = btnFrame
btn.BackgroundTransparency =
btn.Size = .(, , , )
btn.Font = .Font.GothamBold
btn.Text = text
btn.TextColor3 = .(, , )
btn.TextSize =
btn
Min1Btn = (, , )
Min5Btn = (, , )
StartCard = (, , )
StartCard.BackgroundColor3 = .(, , )
StartCard.BackgroundTransparency =
StartButton = .()
StartButton.Parent = StartCard
StartButton.BackgroundTransparency =
StartButton.Size = .(, , , )
StartButton.Font = .Font.GothamBold
StartButton.Text =
StartButton.TextColor3 = .(, , )
StartButton.TextSize =
StatusCard = (, , )
StatusCard.BackgroundColor3 = .(, , )
StatusCard.BackgroundTransparency =
StatusLabel = .()
StatusLabel.Parent = StatusCard
StatusLabel.BackgroundTransparency =
StatusLabel.Size = .(, , , )
StatusLabel.Font = .Font.GothamBold
StatusLabel.Text =
StatusLabel.TextColor3 = .(, , )
StatusLabel.TextSize =
TrackerState = {
Running = ,
WaitTime = ,
StartBlocks = ,
StartRebirths = ,
ElapsedTime = ,
Stopping =
}
()
blocks = blocksMinedStat.Value
rebirths = rebirthsStat.Value
blocks, rebirths
()
Min1Btn.TextColor3 = .(, , )
Min5Btn.TextColor3 = .(, , )
SetButton.TextColor3 = .(, , )
()
TrackerState.Running =
TrackerState.Stopping =
TrackerState.ElapsedTime =
StartButton.Text =
StartCard.BackgroundColor3 = .(, , )
()
TrackerState.WaitTime <=
StatusLabel.Text =
TrackerState.Running
TrackerState.Stopping =
StatusLabel.Text =
TrackerState.Running =
TrackerState.Stopping =
TrackerState.ElapsedTime =
StartButton.Text =
StartCard.BackgroundColor3 = .(, , )
StatusLabel.Text =
i = , , -
TrackerState.Stopping (); StatusLabel.Text = ;
StatusLabel.Text = .. i ..
.()
TrackerState.Stopping (); StatusLabel.Text = ;
TrackerState.StartBlocks, TrackerState.StartRebirths = ()
remaining = TrackerState.WaitTime
remaining >
TrackerState.Stopping
StatusLabel.Text = .. remaining ..
.()
remaining = remaining -
TrackerState.ElapsedTime = TrackerState.ElapsedTime +
endBlocks, endRebirths = ()
gainedBlocks = .(, endBlocks - TrackerState.StartBlocks)
gainedRebirths = .(, endRebirths - TrackerState.StartRebirths)
StatusLabel.Text = .(, (gainedBlocks), (gainedRebirths))
()
Min1Btn.MouseButton1Click:(()
TrackerState.Running
()
TrackerState.WaitTime ==
TrackerState.WaitTime =
TrackerState.WaitTime =
Min1Btn.TextColor3 = .(, , )
)
Min5Btn.MouseButton1Click:(()
TrackerState.Running
()
TrackerState.WaitTime ==
TrackerState.WaitTime =
TrackerState.WaitTime =
Min5Btn.TextColor3 = .(, , )
)
SetButton.MouseButton1Click:(()
TrackerState.Running
()
num = (TimeInput.Text)
num num >
TrackerState.WaitTime = num
SetButton.TextColor3 = .(, , )
StatusLabel.Text = .. num ..
StatusLabel.Text =
)
StartButton.MouseButton1Click:(()
.(StartTracking)
)
()
success, result = (()
statsFrame = LocalPlayer.PlayerGui.ScreenGui:()
statsFrame
inventory = statsFrame:()
inventory inventory:()
amtText = inventory.Amount.Text
amt = .(amtText, )[]
amt
((amt:(, )))
)
success result
Remote =
()
screenGui = LocalPlayer:():(, )
screenGui
clientScript = screenGui:(, )
clientScript getupvalue
success, env = (, clientScript)
success env env.updatePasses
upvalueSuccess, values = (getupvalue, env.updatePasses, )
upvalueSuccess (values) == values[]
values[]
repStorage = :()
foundRemote = repStorage:() repStorage:() repStorage:()
foundRemote foundRemote:()
foundRemote
Remote = ()
Remote .()
Remote ~=
()
Collapse =
Counter =
ScriptIsBroken =
vuAF = :()
LocalPlayer.Idled:(()
vuAF:(.(,),.CurrentCamera.CFrame)
.()
vuAF:(.(,),.CurrentCamera.CFrame)
)
CoinsAmount = LocalPlayer.leaderstats.Coins
()
Amount = CoinsAmount.Value
(Amount) ==
Amount = Amount:(, )
(Amount)
Remote (Remote) == Remote:()
Remote.OnClientEvent:(()
)
()
char = LocalPlayer.Character
char
char:()
.(()
hrp = ()
hrp
pos = hrp.Position
depthBlocks = .((MapConfig.MineTopY - pos.Y) / )
depthBlocks < depthBlocks =
DepthLabel.Text = .. (depthBlocks) ..
DepthCordsLabel.Text = .(, pos.X, pos.Y, pos.Z)
DepthLabel.Text =
DepthCordsLabel.Text =
.()
)
currentMiningY = MapConfig.MineTopY
()
HumanoidRootPart = ()
HumanoidRootPart HumanoidRootPart.Parent
HumanoidRootPart.AssemblyLinearVelocity = .zero
HumanoidRootPart.AssemblyAngularVelocity = .zero
HumanoidRootPart.CFrame = .(MapConfig.MineX, currentMiningY + , MapConfig.MineZ)
()
.Workspace.Gravity =
char = LocalPlayer.Character LocalPlayer.CharacterAdded:()
HumanoidRootPart = char:()
humanoid = char:()
humanoid.WalkSpeed =
humanoid.JumpPower =
HumanoidRootPart.Anchored =
part = .(, )
part.Name =
part.Anchored =
part.Size = .(, , )
part.Material = .Material.ForceField
part.Position = .(MapConfig.MineX, MapConfig.ForcefieldY - , MapConfig.SpawnZ)
Remote Remote:(, {{MapConfig.SpawnName}})
.()
HumanoidRootPart.CFrame = .(MapConfig.MineX, MapConfig.ForcefieldY + , MapConfig.SpawnZ)
.()
HumanoidRootPart.Anchored =
HumanoidRootPart.Position.Z > MapConfig.MineZ
HumanoidRootPart.AssemblyLinearVelocity = .zero
HumanoidRootPart.AssemblyAngularVelocity = .zero
HumanoidRootPart.CFrame = .(.(MapConfig.MineX, MapConfig.WalkY, HumanoidRootPart.Position.Z - ))
RunService.Heartbeat:()
HumanoidRootPart.CFrame = .(MapConfig.MineX, MapConfig.MineTopY, MapConfig.MineZ)
part part:()
.Workspace.Gravity =
()
overlapParams = OverlapParams.()
overlapParams.FilterType = .RaycastFilterType.Include
overlapParams.FilterDescendantsInstances = {.Workspace.Blocks}
()
tunnelBoxSize = .(
.(MapConfig.InitialDescentSize.X, ),
,
.(MapConfig.InitialDescentSize.Z, )
)
HumanoidRootPart.Position.Y > MapConfig.MaxDepth
HumanoidRootPart.AssemblyLinearVelocity = .zero
HumanoidRootPart.AssemblyAngularVelocity = .zero
checkCFrame = .(MapConfig.MineX, HumanoidRootPart.Position.Y - , MapConfig.MineZ)
parts = :(checkCFrame, tunnelBoxSize, overlapParams)
#parts >
_, block (parts)
block:()
Remote Remote:(, {{block.Parent}})
RunService.Heartbeat:()
HumanoidRootPart.CFrame = HumanoidRootPart.CFrame - .(, , )
RunService.Heartbeat:()
()
clearedLayers =
targetLayers =
totalBlocksCleared =
clearingBoxSize = .(MapConfig.MiningAreaSize.X, , MapConfig.MiningAreaSize.Z)
clearedLayers < targetLayers
HumanoidRootPart.AssemblyLinearVelocity = .zero
HumanoidRootPart.AssemblyAngularVelocity = .zero
checkCFrame = .(MapConfig.MineX, HumanoidRootPart.Position.Y - , MapConfig.MineZ)
parts = :(checkCFrame, clearingBoxSize, overlapParams)
#parts >
_, block (parts)
block:()
Remote Remote:(, {{block.Parent}})
totalBlocksCleared = totalBlocksCleared +
RunService.Heartbeat:()
HumanoidRootPart.CFrame = HumanoidRootPart.CFrame - .(, , )
clearedLayers = clearedLayers +
(.(, clearedLayers, targetLayers))
RunService.Heartbeat:()
(.(, (totalBlocksCleared)))
currentMiningY = HumanoidRootPart.Position.Y
.Workspace.Gravity =
(.(, currentMiningY))
()
()
characterInstance = LocalPlayer.Character
characterInstance characterInstance:()
characterInstance.Humanoid.PlatformStand =
Collapse ScriptIsBroken
hrp = ()
hrp
Params = OverlapParams.()
Params.FilterType = .RaycastFilterType.Include
Params.FilterDescendantsInstances = {.Workspace.Blocks}
parts = :(.(MapConfig.MineX, hrp.Position.Y, MapConfig.MineZ), MapConfig.MiningAreaSize, Params)
parts[]
_, block (parts)
Collapse ScriptIsBroken
block:()
block.Position.Y > (hrp.Position.Y - )
currentMiningY = block.Position.Y
hrp.AssemblyLinearVelocity = .zero
hrp.AssemblyAngularVelocity = .zero
hrp.CFrame = .(MapConfig.MineX, currentMiningY + , MapConfig.MineZ)
Remote Remote:(, {{block.Parent}})
() >= Config.SellThreshold Collapse ScriptIsBroken
hrp = ()
hrp
hrp.AssemblyLinearVelocity = .zero
hrp.AssemblyAngularVelocity = .zero
hrp.CFrame = .(MapConfig.SellPos)
Remote Remote:(, {{}})
RunService.Heartbeat:()
RebirthsAmount = LocalPlayer.leaderstats.Rebirths
RebirthsAmount
() >= (MapConfig.RebirthCost * (RebirthsAmount.Value + )) Collapse ScriptIsBroken
Remote Remote:(, {{}})
RunService.Heartbeat:()
Config.TeleportDelay >
.(Config.TeleportDelay)
hrp = ()
hrp
Config.InstantTeleportAfterSell
hrp.CFrame = .(MapConfig.MineX, currentMiningY + , MapConfig.MineZ)
()
Collapse ScriptIsBroken
currentMiningY = currentMiningY -
hrp.CFrame = .(MapConfig.MineX, currentMiningY + , MapConfig.MineZ)
RunService.Heartbeat:()
.Workspace.Collapsed.Changed:(()
.Workspace.Collapsed.Value ==
()
Collapse =
(visible)
(()
screenGui = LocalPlayer.PlayerGui:()
screenGui
mainButtons = screenGui:()
mainButtons
_, childName ({, , , })
btn = mainButtons:(childName)
btn btn.Visible = hidden
invMain = mainButtons:()
invMain invMain.Visible = hidden
invGui = screenGui:()
invGui invGui.Visible = hidden
)
()
hrp = ()
hrp
hrp.Anchored =
hrp.AssemblyLinearVelocity = .zero
hrp.AssemblyAngularVelocity = .zero
char = LocalPlayer.Character
char char:()
char.Humanoid.PlatformStand =
char.Humanoid.WalkSpeed =
char.Humanoid.JumpPower =
.()
()
.(()
.()
()
)
Counter =
Collapse =
.(RebirthLoop)
)
.(()
.()
Counter +=
Counter >=
ScriptIsBroken Collapse
ScriptIsBroken =
.()
()
Counter =
ScriptIsBroken =
.(RebirthLoop)
Counter =
)()
.(RebirthLoop)
()For mining simulator 1