Urbanpower

Star Simulator Beta [Inf resources]

Apr 17th, 2022
1,284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. local Convertables = require(game:GetService("ReplicatedStorage").PlayerData.InitialPlayerData)
  2. local Player = game.Players.LocalPlayer
  3.  
  4. for i = 1,50 do
  5. wait()
  6. for _,v in pairs(workspace['Star_'..Player.Name].Player.Land:GetDescendants()) do
  7. spawn(function()
  8. if string.find(v.Name,'Ore_') or string.find(v.Name,'Tree_') then
  9. for _,v2 in pairs(v:GetChildren()) do
  10. game:GetService("ReplicatedStorage").Attack.UpdateHPEvent:FireServer(v2,'Axe')
  11. end
  12. end
  13. end)
  14. end
  15. end
  16.  
  17. for _,v in pairs(Convertables.Conversion) do
  18. game:GetService("ReplicatedStorage").Resources.Conversion:InvokeServer(_,"2000")
  19. game:GetService("ReplicatedStorage").Resources.BuildingRemo:InvokeServer(_,2000)
  20. end
Advertisement
Add Comment
Please, Sign In to add comment