Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. local function DisableMines()
  2. if game.Players.LocalPlayer.MinesActivated.Value == true then
  3. game.ReplicatedStorage.ToggleMines:InvokeServer()
  4. end
  5. end
  6.  
  7. local function EnableMines()
  8. if game.Players.LocalPlayer.MinesActivated.Value == false then
  9. game.ReplicatedStorage.ToggleMines:InvokeServer()
  10. end
  11. end
  12.  
  13. local count = 0
  14. while wait() do
  15. count = 0
  16. for i,v in pairs(workspace.DroppedParts:FindFirstChild("game.Players.LocalPlayer.PlayerTycoon.Value.Name"):GetChildren()) do
  17. if v:FindFirstChild("Cash") and v.Cash.Value >= 10 then
  18. count = count + 1
  19. end
  20. end
  21. if count >= 100 then
  22. DisableMines()
  23. else EnableMines()
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement