Teleport not working

I have a problem when making my game. So I have 2 subplaces that I want the player to teleport to be able to progress through the game but whenever I try it out in the actual game (not studio) I get the error code 773, the game is public and I have ticked in ‘‘allow 3rd party teleports’’ in the game settings. I’ve run out of ideas on what the issue is at this point and have read through a few posts about this specific topic but cant find a solution to my problem

Script:

local TeleportService = game:GetService(“TeleportService”)

function touched(part)
local char = part.Parent
local player = game.Players:GetPlayerFromCharacter(char)

TeleportService:Teleport(17144903989, player)

end

script.Parent.Touched:Connect(touched)

Both places have to be public in order to teleport succesfully. Also, you cannot teleport in roblox studio, you have to try it in-game. Go to both places, go to file and hit publish to roblox.

I swear I did that like atleast 100 times but now it works

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.