local id = 6741728
game.Players.PlayerAdded:connect(function(player)
if local HasPass = Game:GetService("GamePassService"):PlayerHasPass(player, id) then
player:findFirstChild("PlayerGui").VIPgui.Visible = true else player:findFirstChild("PlayerGui").VIPgui.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)
It won't work! any ideas ? :/

2 comments
Thanks! the script is local or ?
Server