#Assistance Needed with Teleportation Script in Roblox Studio

1 messages · Page 1 of 1 (latest)

knotty shuttle
#

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!

dim crag
#

loop through the players in zone one instead of saying "Players = game:GetService("Players") which would get every player

knotty shuttle
#

i try with these 2 script but it didnt work

#

and idk why its tell me zone1 isnt in workspace i mean its is no?

dim crag
#

Your doing Zone1 instead of zone1

#

Your using an uppercase

knotty shuttle
#

oh

#

and i have 1 last error

fresh elk
knotty shuttle
#

i have noting in there

#

did i forget somthing

fresh elk
#

.... if nothings in there why are you trying to get something from there?

knotty shuttle
#

oh i put the event in rplicated storage instead

fresh elk
knotty shuttle
#

okay

#

wich one do i need to put

fresh elk
knotty shuttle
#

no wait i will send you

#

fireclient?

fresh elk
knotty shuttle
#

ok thanks

dim crag
#

@knotty shuttle accept my friend request?

#

I have tips for scripting cool games