im trying to make a tool named shovel and when it clicks on a model, inside of the model a part change size, im trying to detect it but mine just breaks. How do you accurately detect it?
If player equips tool, this appears at his model. Here is code
ClickDetect = YourWayToClickDetector --There your way to click detector function Click() for _, i in pairs(script.Parent:GetChildren()) do --Starts searching local Name = tostring(i.Name) if Name == "Trowel" then --Checks that player equipped tool, put there your tool name -- Your Code there end end end ClickDetect:Connect(Click)