Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function DisableMines()
- if game.Players.LocalPlayer.MinesActivated.Value == true then
- game.ReplicatedStorage.ToggleMines:InvokeServer()
- end
- end
- local function EnableMines()
- if game.Players.LocalPlayer.MinesActivated.Value == false then
- game.ReplicatedStorage.ToggleMines:InvokeServer()
- end
- end
- local count = 0
- while wait() do
- count = 0
- for i,v in pairs(workspace.DroppedParts:FindFirstChild("game.Players.LocalPlayer.PlayerTycoon.Value.Name"):GetChildren()) do
- if v:FindFirstChild("Cash") and v.Cash.Value >= 10 then
- count = count + 1
- end
- end
- if count >= 100 then
- DisableMines()
- else EnableMines()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement