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)