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

How To Can You Make A Telelport To Another Game Script?

Asked by 3 years ago

I keep trying but I still can't get it lol, here is my code

game.Players.PlayerAdded:Connect(function()
---Stuck lol

1 answer

Log in to vote
0
Answered by
chasedig1 115
3 years ago

https://developer.roblox.com/en-us/api-reference/class/TeleportService

Here is some baseline code to get you going:

local TeleportService = game:GetService("TeleportService")
local Players = game.Players

Players.PlayerAdded:Connect(function(player)
    TeleportService:Teleport(PLACEID,player)
end)

This code will teleport the player to another game right when the join! Enjoy!

1
Thanks! CodedStars 70 — 3y
Ad

Answer this question