How do I make a part that when its clicked it changes to a tool and clones into the clickers inventory?
✓ ANSWER ACCEPTED
HowdoImakeapartthatwhenits clicked it change to a tool and clones into the clickers inventory?
1 answer
✓ Accepted answer
Insert ClickDetector inside part then insert Script inside part and paste this:
local part = script.Parent
script.Parent.ClickDetector.MouseClick:Connect(function(Player)
local tool = Instance.new("Tool")
part.Parent = tool
part.Anchored = false
part.Name = "Handle"
part.ClickDetector:Destroy()
tool.Parent = Player.Backpack
end)
Note: This will only work for a single part item (In case it has multiple parts you will need to weld and move all parts to tool)
1 comment
0
That's also a way to do it but in case he will use this for sword or something it's important for him to have seperated parts. And tools usually have welds.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
use a click detector