Ms Lua
Ms Lua
Players.LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("ScreenGui")
while
Players.LocalPlayer.PlayerGui.ScreenGui.LoadingFrame.BackgroundTransparency == 0 do
for i, connection in
pairs(getconnections(Players.LocalPlayer.PlayerGui.ScreenGui.LoadingFrame.Quality.L
owQuality.MouseButton1Down)) do
connection:Fire()
end
task.wait(1)
end
while true do
if pcall(function() Client.leaderstats:WaitForChild("Blocks Mined") end)
then
if pcall(function()
Client.PlayerGui.ScreenGui.StatsFrame.Coins:FindFirstChild("Amount") end) then
if Client.PlayerGui.ScreenGui.StatsFrame.Tokens.Amount.Text ~=
"Loading..." then
break
end
end
end
task.wait(1)
end
if Players.LocalPlayer.PlayerGui.ScreenGui:FindFirstChild("TeleporterFrame")
then
Players.LocalPlayer.PlayerGui.ScreenGui.TeleporterFrame:Destroy()
end
if Players.LocalPlayer.PlayerGui.ScreenGui.StatsFrame:FindFirstChild("Sell")
then
Players.LocalPlayer.PlayerGui.ScreenGui.StatsFrame.Sell:Destroy()
end
if
Players.LocalPlayer.PlayerGui.ScreenGui.MainButtons:FindFirstChild("Surface") then
Players.LocalPlayer.PlayerGui.ScreenGui.MainButtons.Surface:Destroy()
end
if Players.LocalPlayer.PlayerGui.ScreenGui:FindFirstChild("Collapse") then
Players.LocalPlayer.PlayerGui.ScreenGui.Collapse.Visible = true
end
--Rebirth GUI
local ExampleFrame =
game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("Scre
enGui"):WaitForChild("StatsFrame"):WaitForChild("Inventory")
local Rebirths = game:GetService("Players").LocalPlayer.leaderstats.Rebirths
local Rebirths2 = ExampleFrame:Clone()
Rebirths2.Parent = ExampleFrame.Parent
Rebirths2.Position = UDim2.new(0, 0, 1.5, 15)
Rebirths2.Logo.Image = "rbxassetid://1440681030"
Rebirths2.Amount.Text = tostring(Rebirths.Value)
Rebirths:GetPropertyChangedSignal("Value"):Connect(function()
Rebirths2.Amount.Text = tostring(Rebirths.Value)
end)
--Blocks Mined GUI
local BlocksMined = game:GetService("Players").LocalPlayer.leaderstats["Blocks
Mined"]
local BlocksMined2 = ExampleFrame:Clone()
BlocksMined2.Parent = ExampleFrame.Parent
BlocksMined2.Position = UDim2.new(0, 0, 2, 20)
BlocksMined2.Logo.Image = "rbxassetid://10677632570"
BlocksMined2.Amount.Text = tostring(BlocksMined.Value)
BlocksMined:GetPropertyChangedSignal("Value"):Connect(function()
BlocksMined2.Amount.Text = tostring(BlocksMined.Value)
end)
--Reconnect
local po = game.CoreGui.RobloxPromptGui.promptOverlay
po.ChildAdded:connect(function(a)
if a.Name == 'ErrorPrompt' then
repeat
game:GetService("TeleportService"):Teleport(game.PlaceId,
Players.LocalPlayer)
task.wait(2)
until false
end
end)
--Rejoin
workspace.Collapsed.Changed:connect(function()
if workspace.Collapsed.Value == true then
game:GetService("TeleportService"):Teleport(game.PlaceId,
Players.LocalPlayer)
end
end)
local Data =
getsenv(Players.LocalPlayer.PlayerGui.ScreenGui.ClientScript).displayCurrent
local Values = getupvalue(Data,8)
Remote = Values["RemoteEvent"]
Data, Values = nil
--Dig to depth
local depth = Split(Client.PlayerGui.ScreenGui.TopInfoFrame.Depth.Text," ")
while tonumber(depth[1]) < Depth do
local min = HumanoidRootPart.CFrame + Vector3.new(-1,-10,-1)
local max = HumanoidRootPart.CFrame + Vector3.new(1,0,1)
local region = Region3.new(min.Position, max.Position)
local parts = workspace:FindPartsInRegion3WithWhiteList(region,
{game.Workspace.Blocks}, 10)
for _, block in pairs(parts) do
Remote:FireServer("MineBlock",{{block.Parent}})
task.wait()
end
depth = Split(Client.PlayerGui.ScreenGui.TopInfoFrame.Depth.Text," ")
task.wait()
end
--Recover
local Character = Client.Character
local recovering = false
local DepthAmount = Client.PlayerGui.ScreenGui.TopInfoFrame.Depth
DepthAmount.Changed:Connect(function()
task.spawn(function()
local depth = Split(DepthAmount.Text, " ")
if tonumber(depth[1]) >= 1000 and not recovering then
print("recovering true")
HumanoidRootPart.CFrame = CFrame.new(18, Depth, 26220)
print("teleported")
task.wait()
recovering = false
print("recovering false")
end
end)
end)
--Rebirth
local RebirthsAmount = Client.leaderstats.Rebirths
game:GetService("RunService"):BindToRenderStep("Rebirth",
Enum.RenderPriority.Camera.Value, function()
while GetCoinsAmount() >= (10000000 * (RebirthsAmount.Value + 1)) do
Remote:FireServer("Rebirth",{{}})
task.wait()
end
end)