This Script Doesn't let me TP with my Gamepass?
This is the script:
01 | local passId = 1224428687 |
03 | function isAuthenticated(player) |
04 | return game:GetService( "GamePassService" ):PlayerHasPass(player, passId) |
07 | game.Players.PlayerAdded:connect( function (plr) |
08 | if isAuthenticated(plr) then |
09 | print (plr.Name .. " has bought the game pass with id " .. passId) |
14 | local player = script.Parent.Parent.Parent.Parent |
15 | local target = game.Workspace:WaitForChild( "DJSPAWN" ) |
17 | script.Parent.MouseButton 1 Click:connect( function () |
18 | if debounce = = true then |
20 | player.Character.HumaniodRootPart.CFrame = target.CFrame * |
25 | script.Parent.Text = i |
28 | script.Parent.Text = "Teleport to Spawn" |
it doesnt tp me for some reason Please Help!