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

How to limit the players on teleportation?

How can i limit the teleporter I need a teleporter that teleports 2 players then waits and teleports 2 players again when they touch

like:

First player touches and teleports Second player touches and teleports then waits 10 second

and does the same thing again

4 comments

0

You didn't try. No trying, no script. PS:The site says before asking a question, THIS IS NOT A REQUEST SITE.

0

It's not a request i dont want the full script i just want to know how to make it

0

So i just wanna know how to limit it with 2 players and wait

0

local teleportedplayers = 0 local canteleport = false if teleportedplayers > 2 then canteleport = false wait(10) canteleport = true end

1 answer

Probably not the best way of doing it. Someone can correct me if they know another way.

if there are less than two players teleporting (just a variable containing num people teleporting), use pcall to teleport a player. If it is successful, wait till they aren't in the players list / add one to people teleporting variable and subtract when they're not in game anymore

2 comments

0

Thank you for the help but it's so hard do make it lol.

1

No problem. Could you mark as solved?

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