Here is the script:
local id = 749645444
game.Players.PlayerAdded:connect(function(player)
if local HasPass = Game:GetService("GamePassService"):PlayerHasPass(player, id) then
player:findFirstChild("PlayerGui").Teleport.Visible = true else player:findFirstChild("PlayerGui").Teleport.Visible = false
local x = Instance.new("Message",Workspace)
x.Text = player.Name .. (HasPass and " has" or " doesn't have").. " the game pass!"
wait(2)
x:Remove()
end
end)
How do I make this script indicate that a GUI will be given to the players if they bought a gamepass?

2 comments
There's multiple problems, but I'll only point out where they're: Lines 3, 4, 6, 8.
u disliked I know u did @TheeDeathCaster