How to I make it so that if you hack at a tree (model) with a stone, axe, or hatchet, it gets destroyed and gives you 5 copies of a tool called "wood"
COMMUNITY QUESTION
How do I chop down trees?
2 answers
This website is for help with debugging existing code, or help understanding specific techniques/methods, not requests. This question is too vague and there is very little details as to what you have currently set up and what you have already tried.
Put the tool in Lighting. Put the script inside the brick
backpack = game.Players:WaitForChild("Backpack")
wood = script.Parent
m = Instance.new("ClickDetector")
m.Parent = wood
wood.ClickDetector.MouseClick:connect(function()
wood:Destroy()
game.Lighting.Wood.Parent = backpack
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Not Constructive...