Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I make a player join 20 seconds after all the other players joined? (Studio)

Asked by 5 years ago

Pretty self-explanatory. I'm not sure how to achieve this in studio. Basically when I press the start button in "Client and Servers" 3 players join. Then after 20 seconds how would I make another player join? (obviously done manually but not sure how it's achieved)

0
I dont belive studio has this capability. Sxribe 15 — 5y
0
This is all done from roblox studio's testing feature, not actual players if that clarifies. gmatchOnRoblox 103 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

I am uncertain if studio can delay the connection between the player and the game. I do know, however, that you can lock a player inside a "spawn room" and let the other players roam around. Wait 20 secs, then respawn that player. If you wish for me to expand upon this, feel free contact my Discord. I hope this helps

Ad
Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

As the previous answer said, you can't really stop a player from joining a server, however you can have them in a certain room for 20 seconds. The script would look something like vv That essentially would have every fourth player be teleported to the room. You could edited it as needed, for example if you wanted only the first three you would delete the numberofplayers=0.

local numberofplayers = 0
game.Players.PlayerAdded:connect(function(player)
     numberofplayers = numberofplayers+1
if number of players == 4 then 
-- your script teleporting them to room
   wait(20)
numberofplayers = 0
-- your script teleporting them to game

Edit: if you need more specifics on the script, or information ion what you are attemping the robloxwiki is a good tool.

Answer this question