Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make click-to-equip tool? It need to can be collected as many as you want.

I need it for my game, i looking for tool script or something for 2 days and i cant find the way

1 answer

You can do something like this. Using :Clone() to duplicate an instance.

local tool -- tool's location 
local clickdetector -- click detector location

clickdetector.MouseClick:Connect(function(plr)
 local tool_cloned = tool:Clone
 tool_cloned.Parent = plr.Backpack
end)

1 comment

0

thanks i may try it

This discussion is preserved as it was. New answers, comments, and votes are closed.