Hi :), I made an tool giver, but I want that the player only has one of each tool (in this case a knife). I tried multiple things, but never worked. Someone that can help me?
this is the script of the tool giver with clickdetector
function hi(x)
local y = x.Backpack
local z = game.Lighting["Knife"]
z:Clone().Parent = y
end
script.Parent.ClickDetector.MouseClick:connect(hi)

7 comments
Ty, but now it dont give me the knife anymore.
i edited my answer, check if it works now! :)
very uncool mate
It worked!!! TY SO MUCH
shame on you for misspelling variables
who uses X and Y was variables :(
I copied a script with those variables because I was struggling to make my own