I hope you’re doing well. I am currently working on a teleportation script in Roblox Studio, and I need some help.
I have the following script that is intended to wait for 5 seconds wait(5)
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
local code = TeleportService:ReserveServer(127274423977034)
local players = Players:GetPlayers()
TeleportService:TeleportToPrivateServer(127274423977034, code, players)
However, the script currently teleports every player which is not my goal. I would like to modify the script so that only the players who enter Zone1 are teleported to the same private server after a 5-second delay.
Could you please help me adjust the script to achieve this functionality?
Thank you for your assistance!