Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Settings \\--
- local Settings = {
- Enabled = false,
- Rebirth = false,
- Speed = 1
- }
- --// Services \\--
- local Players = game:GetService("Players")
- local Workspace = game:GetService("Workspace")
- local RunService = game:GetService("RunService")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- --// Variables \\--
- local Player = Players.LocalPlayer
- local Stats = {
- Inventory = Player:WaitForChild("Stats"):WaitForChild("Inventory"),
- Space = Player.Stats:WaitForChild("InventorySpace"),
- Rebirths = Player:WaitForChild("leaderstats"):WaitForChild("Life")
- }
- local Tycoon = nil
- --// Grab Player Tycoon \\--
- for _, A_1 in next, Workspace:WaitForChild("Tycoon"):WaitForChild("Tycoons"):GetChildren() do
- if A_1.Owner.Value == Player then
- Tycoon = A_1
- break
- end
- end
- if Tycoon == nil then
- return
- end
- --// UI Library \\--
- local Library = loadstring(game:HttpGetAsync('https://pastebin.com/raw/edJT9EGX'))()
- local Window_1 = Library:CreateWindow("Miner by Ezpi")
- Window_1:AddToggle({
- text = 'Enabled',
- callback = function(A_1)
- Settings.Enabled = A_1
- end
- })
- Window_1:AddToggle({
- text = 'Auto Rebirth',
- callback = function(A_1)
- Settings.Rebirth = A_1
- end
- })
- Window_1:AddSlider({
- text = 'Speed',
- min = 1,
- max = 16,
- callback = function(A_1)
- Settings.Speed = A_1
- end
- })
- Library:Init()
- --// NoClip \\--
- RunService.RenderStepped:Connect(function()
- if Settings.Enabled then
- Player.Character.Humanoid:ChangeState(11)
- end
- end)
- --// Get Most Valuable Ore \\--
- function GetOre()
- local Ore = nil
- local Value = 0
- for _, A_1 in next, Tycoon:WaitForChild("Essentials"):WaitForChild("Ores"):GetChildren() do
- if A_1:FindFirstChild("Cash") and A_1.Cash.Value > Value and A_1:FindFirstChild("Part") then
- Ore = A_1
- Value = A_1.Cash.Value
- end
- end
- return Ore
- end
- --// Script \\--
- while wait() do
- if Settings.Enabled then
- local Ore = GetOre()
- if Ore ~= nil and Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") then
- repeat
- wait()
- pcall(function()
- Player.Character.HumanoidRootPart.CFrame = Ore.Part.CFrame * CFrame.Angles(0,math.rad(math.random(-180,180)),0)
- for _ = 1, Settings.Speed do
- ReplicatedStorage.Ore:FireServer(Ore.Cash.Value, Ore.Part)
- end
- end)
- until Stats.Inventory.Value >= Stats.Space.Value or Settings.Enabled == false
- if Settings.Enabled == true then
- ReplicatedStorage.Sell:FireServer()
- if Settings.Rebirth == true and Stats.Rebirths.Value < 10 then
- ReplicatedStorage.Rebirth:FireServer()
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment