Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function grabOres(mapname)
- local ore = workspace:findFirstChild(mapname).Map.Ores:getChildren()
- for i=1,#ore do
- wait()
- if ore[i].Name == "Block" then
- spawn(function()
- while ore[i].Name == "Block" do
- wait()
- spawn(function()
- for i=1,ore[i].Hits.Value+1 do
- print("hitting a " .. tostring(ore[i].BrickColor) .. " ore. " .. ore[i].Hits.Value+1 .. " times remaining.")
- game.Players.LocalPlayer.Character.Axe.RemoteEvent:FireServer(ore[i])
- end
- end)
- end
- end)
- end
- end
- end
- if workspace:FindFirstChild("SpringMap") then
- grabOres("SpringMap")
- end
- if workspace:FindFirstChild("SummerMap") then
- grabOres("SummerMap")
- end
- if workspace:FindFirstChild("WinterMap") then
- grabOres("WinterMap")
- end
Add Comment
Please, Sign In to add comment