How do I make it so when someone clicks a part it gives the player who clicked it a tool? [closed]
Asked by
5 years ago Edited 5 years ago
I want it so when I click the ClickDetector it'll clone a Tool from ServerStorage and put it in the player's backpack, I've come up with this but I don't know what's wrong with it.
1 | local Tool = game.ServerStorage.ToolEx |
2 | local Player = game.Players.LocalPlayer |
3 | local ClickDet = script.Parent |
5 | ClickDet.MouseClick:Connect( function () |
6 | local ClonedTool = Tool:Clone() |
7 | ColendTool.Parent = Player.Backpack |
Any help would be much aprichiated!
Locked by PrismaticFruits and DeceptiveCaster
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?