local passId = 93044440 -- Pass ID permission = {""} -- People that may pass without the game pass
function check() if game:GetService("GamePassService"):PlayerHasPass(player, passId) then plr.PlayerGui.Teleport.Visible = true else plr.PlayerGui.Teleport.Visible = false end end
game.Players.PlayerAdded:connect(function(plr)
if game:GetService("GamePassService"):PlayerHasPass(player, passId) then
plr.PlayerGui.Teleport.Visible = true
else
plr.PlayerGui.Teleport.Visible = false
end
plr.CharacterAdded:connect(function()
check()
end)
end)
-- By RoyMer, Edited by: awas3
This Gamepass used to work a year ago but for some reason it's not working now, it is supposed to check if you own the gamepass and if you own it, it will allow you to see the GUI, and if you do not own the gamepass, it doesn't show the GUI.
--This must be used in a script --As you can see I have made your code much neater then before. --Try it. local id = 93044440 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)