I’m developing multiple experiences about motorsports/autosports. A very important addition to this is the ability to teleport to places inside the experience.
I’ve followed multiple tutorials, which worked, but the problem is that players in Private Servers get teleported to public servers. What I want to achieve is for players in a private server to teleport between places in an experience and still remain in the private server.
An example of this is Drift Paradise.
Here’s the script I got:
local TeleportService = game:GetService("TeleportService")
local gameID = --(id of place)
local player = game.Players.LocalPlayer
local function onClick()
if player then
TeleportService:Teleport(gameID, player)
end
end
script.Parent.TextButton.MouseButton1Click:Connect(onClick)
Any help is greatly appreciated