Teleport System when ID changes on the IntValue

Hello Roblox community, so basically I want to make a GUI teleport system whenever the ID changes on the IntValue but somehow it didn’t work. It wouldn’t teleport me to the game.

local teleport = game:GetService("TeleportService")

script.Parent.NameString:GetPropertyChangedSignal("Value"):Connect(function()
	script.Parent.Text = "Teleport To: "..script.Parent.NameString.Value
end)

script.Parent.Activated:Connect(function()
   script.Parent.GameID:GetPropertyChangedSignal("Value"):Connect(function()
  	  teleport:Teleport(script.Parent.GameID.Value)
   end)
end)
1 Like

Any output errors? You can’t teleport in studio, by the way. You have to publish instead.

You haven’t put a player as a reference to teleport, only the place id.

It still not working even if you put a player reference
image

How to fix error code 769? Make sure third party teleports are enabled, for both places, if that doesn’t work check other replies in this post.