GUI that shows only when you own a Gamepass?
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.