So, I’m making this game called “ROT”, I started it a few months ago and I just hopped off developing for a while, it’s basically like Camping and other story games, but in order for me to teleport them to the actual game, I need to know how and just have overall knowledge of doing that, which I don’t.
I only have variables in my script right now, and no idea where to start.
If I understand what you are trying to do correctly, all you need to do is take the Player’s CFrame and teleport it to the spawn part of the other map.
Doing this would be simple. Here is an example:
local Players = game:GetService("Players")
local Timer = 60 -- Seconds for the timer
local MapSpawnPart = game.Workspace.Map.SpawnPart
Players.PlayerAdded:Connect(function(Player)
wait(Timer)
Player.Character.HumanoidRootPart.CFrame = MapSpawnPart.CFrame + Vector3.new(0,2,0)
end)
If you are trying to get the player to spawn in a completely different place/game/experience, then you would need to do this:
local Players = game:GetService("Players")
local Timer = 60 -- Seconds for the timer
local TeleportService = game:GetService('TeleportService')
local PlaceID = 5020048423
Players.PlayerAdded:Connect(function(Player)
wait(Timer)
TeleportService:Teleport(PlaceID, Player)
end)