Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make only one teleport? NOT ANSWERED

I need it so only one RANDOM person with no admin or VIP is moved (teleported)

while true do
wait()
for i,v in pairs(game.Players:GetChildren()) do
    v.Character:MoveTo(Vector3.new(-359.5, 291, 88.5))
end
wait(30)
end

1 comment

0

Which player?

2 answers

--Put this in a LocalScript (It should be inside StarterGUI)
p=game.Players.LocalPlayer
while true do
wait()

   p.Character:MoveTo(Vector3.new(-359.5, 291, 88.5))

wait(30)
end

That does it for every player, per 30 seconds depending on when they joined (Once they join the 30 seconds start)

If you want just one player, you need to be more specific. A random player? Or is it some sort of admin, or something. Tell us more.

local PlayerToTeleport=game.Players.Player1
while true do
	PlayerToTeleport.Character:MoveTo(Vector3.new(-359.5,291,88.5))
	wait(30)
end

1 comment

0

will this teleport other people other than one called Player1?

This discussion is preserved as it was. New answers, comments, and votes are closed.