So, i have a card, i don't need to explain what it does.. And when i equip the card, this happends: https://i.gyazo.com/4e56679ab1335bbd0de4e2feb8b23dfb.gif
This is my script to give the card:
local Tools = script:WaitForChild("Backpack")
local Func = {}
Options = {
Admins = {"Player1", "ApinityYT"};
}
Func.Check = function(What, With)
for i, v in pairs(With) do
if v == What then
return true
end
end
return false
end
Func.CharAdd = function(Char)
local Player = game.Players:GetPlayerFromCharacter(Char)
for i, tools in pairs(Tools:GetChildren()) do
tools:Clone().Parent = Player.Backpack
end
end
Func.PlayerAdd = function(Player)
if Func.Check(Player.Name, Options.Admins) then
Player.CharacterAdded:connect(Func.CharAdd)
end
end
game.Players.PlayerAdded:connect(Func.PlayerAdd)
If you see anything wrong, either leave a comment or answer my question, thanks!

1 comment
This solved my problem, thank you!