Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Log = script.Parent.Log
- local Leaves = script.Parent.Leaves
- local hits = 0
- local totalhits = 5
- local SpareTree = game.ReplicatedStorage.Tree
- Log.Touched:Connect(function(hit)
- if hit.Parent.Name == "Axe" then
- hits = hits + 1
- if hits == totalhits then
- hits = 0
- Log.Anchored = false
- Leaves.Anchored = false
- Leaves.CanCollide = false
- wait()
- Log.Rotation = Vector3.new(45,0,0)
- wait(3)
- Log:Destroy()
- local NewTree = SpareTree:Clone()
- NewTree.Parent = workspace
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement