Advertisement
PasterXIV

Untitled

Jan 5th, 2020
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. function grabOres(mapname)
  2. local ore = workspace:findFirstChild(mapname).Map.Ores:getChildren()
  3. for i=1,#ore do
  4. wait()
  5. if ore[i].Name == "Block" then
  6. spawn(function()
  7. while ore[i].Name == "Block" do
  8. wait()
  9. spawn(function()
  10. for i=1,ore[i].Hits.Value+1 do
  11. print("hitting a " .. tostring(ore[i].BrickColor) .. " ore. " .. ore[i].Hits.Value+1 .. " times remaining.")
  12. game.Players.LocalPlayer.Character.Axe.RemoteEvent:FireServer(ore[i])
  13. end
  14. end)
  15. end
  16. end)
  17. end
  18. end
  19. end
  20.  
  21. if workspace:FindFirstChild("SpringMap") then
  22. grabOres("SpringMap")
  23. end
  24.  
  25. if workspace:FindFirstChild("SummerMap") then
  26. grabOres("SummerMap")
  27. end
  28.  
  29. if workspace:FindFirstChild("WinterMap") then
  30. grabOres("WinterMap")
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement