When the character spawns in the game I tried to give them a weapon. Here is the script that some reason DIDN'T error, but it won't work properly.
function Security(plr)
if plr:IsInGroup(1056046) and plr:GetRankInGroup(1056046) == 38 or 255 then
local Sw = game.ServerStorage.LinkedSword:Clone()
local HoldIT = plr:WaitForChild(game.Players.localPlayer.Backpack)
wait(HoldIT)
Sw.Parent = plr.Backpack
print("Sword Was Given")
else
print("Sword Wasn't Given")
end
end
game.Players.PlayerAdded:connect(Security)
Sorry if you can't read it.
How do I get it so whenever they spawn into the game they'll get a weapon called LinkedSword
Comment for questions! Thanks for the help!!

1 comment
Well, you were sorta right. It was the "HoldIT" variable itself. Thanks for trying.