Why does the Spawn GUI still appear even if people don't own the gamepass?
I have this script in a GUI that detects if a player owns a Gamepass, it then deletes the script. However, every time someone joins, some appear as Spawn, yet they don't own the gamepass! Anyone see an issue with the script?
03 | local GamePassService = game:GetService( "GamePassService" ) |
04 | function respawned(char) |
05 | local player = game.Players:FindFirstChild(char.Name) |
07 | if char:FindFirstChild( "Head" ) ~ = nil then |
09 | if GamePassService:PlayerHasPass(player, passid) then |
10 | script.Parent.Parent.Spawn.Visible = true |
18 | game.Workspace.ChildAdded:connect(respawned) |
Cheers in advanced,
Michael