Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 2 years ago

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

1 answer

Log in to vote
-1
Answered by 2 years ago
Edited 2 years ago

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)
0
thanks i may try it SashaPro336 47 — 2y
Ad

Answer this question