Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

Teleport service dosen't work!?!?

Asked by
tomekcz 174
5 years ago
Edited 5 years ago
--this is a localscript that is located in TextButton (parent parent parent parent of it is in StarterGui)

local PlaceTeleportService = game:GetService("TeleportService")

local RacingGame_ID = 3275910351
script.Parent.MouseButton1Click:Connect(function()
    PlaceTeleportService:TeleportToPlaceInstance(RacingGame_ID,game.Players.LocalPlayer)
end)



when i teleport it shows me that racing game does not exist however it exists

0
TeleportService:TeleportToPlaceInstance is used to teleport a player to a specific server in a place tipoignacio 0 — 5y
0
oh tomekcz 174 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

The TeleportToPlaceInstance function in TeleportService will only teleport a player to another server instance in your game. If you want them to teleport to a different game, then use the function Teleport. Hope this helped!

Ad

Answer this question