This game pass script is not working, and I have no idea why. It is supposed to give a player that owns the game pass a weapon.
Can someone please help me?
Here's the script:
local passId = 320562253
function authenticate(player)
return game:GetService("GamePassService"):PlayerHasPass(player, passId)
end
function Enter(plr)
wait(0.5)
if authenticate(plr) then
local c = plr.M1014
c.Value = true
end
end
game.Players.ChildAdded:connect(Enter)

1 comment
It works, thanks!