Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hits = script.Parent.hits.Value
- hitsneeded = script.Parent.Hitsneeded.Value
- function OnTouch(hit)
- if hit.Parent.Name == "axe" then
- hits = hits + 1
- end
- if hits > hitsneeded then
- script.Parent.CanCollide = false
- script.Parent.Transparency = 1
- end
- end
- script.Parent.Touched:connect(OnTouch) --- put in trunk and make a leaf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement