So i made a keycard for my basement which works, but the thing is, i made it so you need to find the card. But the problem is when you click the card AKA tool giver, it only lets 1 person hold it, basically if someone else clicks the tool giver, the keycard from my inventory gets taken away and given to the other player. How do i make it so it just clones the item? This is the script.
local tool = game.ServerStorage.Card
local klone = tool:clone()
script.Parent.ClickDetector.MouseClick:Connect(function(plr)
if klone.Parent ~= plr.Backpack then
klone.Parent = plr.Backpack
end
end)
I got this from this video https://www.youtube.com/watch?v=orJMUz8b5nE

1 comment
This is correct, accept this answer!