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

Can anyone help on AlvinBlox How to make a sword game?

Overall, up to episode 3, I was able to basically start understanding how coding works even though I was just copying it down. I just wanted a game that my friends and I could play on and it felt pretty cool for the game to be made by me. But once I realized this code script or text or line or whatever (I don't know what it is called. I am pretty new to this), was outdated, I couldn't find an alternative to it.

repeat wait(1) until game.Players.Numplayers >=2

If you need anymore details, I'll be open to providing them. I really have no clue how to format these questions.

1 comment

0

Not sure how anyone would have referenced the number of players like that. Try #Numplayers instead or #game.Players:GetPlayers() because I don't know what Numplayers is,

1 answer

You can do:

repeat wait(1) until #game.Players:GetChildren() >= 2

So basically the script will get all the children and create the table and put all children to it then count the number of member in that table

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