Hi guys! I need some help here. Is there any way I can make a part that when a player clicks on it, it will give them a tool.
(BTW, the tool's name is "Cup")
I hope that some of you will help me with this. Thanks if you do! :D
Make sure to put the tool, "Cup" under ReplicatedStorage. Paste the code down below into a script thats under the part:
local cd = Instance.new("ClickDetector") cd.Parent = script.Parent cd.MouseClick:Connect(function(Plr) local cup = game.ReplicatedStorage.Cup:Clone() cup.Parent = Plr.Backpack end)
Closed as Not Constructive by awfulszn and hiimgoodpack
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?