I made a GUI that teleports a player that has the game pass to be telported to a certain place and if he doesnt have it it wont teleport him! Either way the player is not teleported help me please!
print("teleport")
brick = workspace["Tele3"]
player = script.Parent.Parent.Parent.Parent.Character
local passId = ######## -- Id of gamepass here!
function HasGamePass(Player)
return game:GetService("GamePassService"):PlayerHasPass(player, PassId)
end
game.Players.PlayerAdded:connect(HasGamePass)
if HasGamePass(plr) then
function tele()
player.Torso.CFrame = brick.CFrame + Vector3.new(0,4,0)
end
else
print ("Player Does not have game pass!")
end
script.Parent.MouseButton1Down:connect(tele)
