Mining Simulator Script
Mining Simulator Script
local Toggles = {
AutoSell = false,
FastMine = false,
AutoMine = false,
AutoBackpack = false,
AutoTools = false,
AutoRebirth = false
}
local InventoryAmount =
LocalPlayer.PlayerGui.ScreenGui.StatsFrame2.Inventory.Amount
local CoinsAmount = game.Players.LocalPlayer.leaderstats.Coins
return tonumber(Amount)
end
AutoMineToggle.MouseButton1Click:Connect(function()
if Remote then
Toggles["AutoMine"] = not Toggles["AutoMine"]
if Toggles["AutoMine"] == true then
AutoMineToggle.Text = "Disable"
while Toggles["AutoMine"] do
local Character = LocalPlayer.Character
local HumanoidRootPart =
Character:FindFirstChild("HumanoidRootPart")
if HumanoidRootPart then
local min = HumanoidRootPart.CFrame + Vector3.new(-
10,-10,-10)
local max = HumanoidRootPart.CFrame +
Vector3.new(10,10,10)
local region = Region3.new(min.Position,
max.Position)
local parts =
workspace:FindPartsInRegion3WithWhiteList(region, {game.Workspace.Blocks}, 100) --
ignore part
InventoryAmount.Changed:Connect(function(Change)
if ScreenGUI then
if Change == "Text" then
if Toggles["AutoSell"] then
local Amount, MaxAmount, AmountComma, MaxAmountComma2 =
GetInventoryAmount()
if SELL_TRESHOLD ~= nil then
MaxAmount = SELL_TRESHOLD
end
if Amount >= MaxAmount then
local Character = LocalPlayer.Character
if Character then
local HumanoidRootPart =
Character:FindFirstChild("HumanoidRootPart")
if HumanoidRootPart then
local SavedLocation =
HumanoidRootPart.CFrame
local SavedText = InventoryAmount.Text
while InventoryAmount.Text == SavedText
do
HumanoidRootPart.CFrame =
CFrame.new(-116, 13, 38)
Remote:FireServer("SellItems",{{
}})
wait()
end
HumanoidRootPart.Anchored = true
while HumanoidRootPart.CFrame ~=
SavedLocation do
HumanoidRootPart.CFrame =
SavedLocation
wait()
end
HumanoidRootPart.Anchored = false
end
end
end
end
end
end
end)
game.Workspace.Blocks.ChildAdded:Connect(function(block)
if ScreenGUI then
if Toggles["FastMine"] then
local Stats = block:WaitForChild("Stats")
if Stats then
local Multiplier = Stats:WaitForChild("Multiplier")
if Multiplier then
local ActualMultiplier =
Stats:FindFirstChild("ActualMultiplier")
if not ActualMultiplier then
local ActualMultiplier = Multiplier:Clone()
ActualMultiplier.Name = "ActualMultiplier"
ActualMultiplier.Parent = Stats
end
Multiplier.Value = -1337
end
end
end
end
end)
ExitButton.MouseButton1Click:Connect(function()
TopBar.Visible = false
OpenButton.Visible = true
end)
OpenButton.MouseButton1Click:Connect(function()
TopBar.Visible = true
OpenButton.Visible = false
end)
print("Subscribe to Enercept")