This script does work properly it gives you the weapon, but it only gives it to you when you join another new server. Any help on how to fix this? I've been wondering around with this script much in why it does that.
wait(2) gpid = 223931418 tools = {"Bren"} GPS = game:GetService("GamePassService") function respawned(char) local player = game.Players:FindFirstChild(char.Name) if char:FindFirstChild("Head") ~= nil then print("It's a Player!") if GPS:PlayerHasPass(player, gpid) then print("Has GPID") for i = 1,#tools do game.Lighting:FindFirstChild(tools[i]):Clone().Parent = player.Backpack end else print("No GPID") end end end game.Workspace.ChildAdded:connect(respawned)