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.
local Tool = game.ServerStorage.ToolEx
local Player = game.Players.LocalPlayer
local ClickDet = script.Parent
ClickDet.MouseClick:Connect(function()
local ClonedTool = Tool:Clone()
ColendTool.Parent = Player.Backpack
end)
Any help would be much aprichiated!

6 comments
Is this in a LocalScript? If not, then it can't pull the LocalPlayer.
it isn't should I make it a LocalScript?
Yes.
That's your problem, LocalPlayer doesn't exist on the server
Oh ok, it also gives me an error in the Output, Workspace.ToolEx.Script attempt to index iil with backpack
Imma request to lock question.