LordBlanc
|
  |
| Joined: 13 Dec 2013 |
| Total Posts: 91 |
|
|
| 11 Apr 2015 07:49 AM |
I am scripting game, and i scripted that game can't start unless 3 or more players.
Script:
if game.Players < 2 then announcer.text = "You need 3 or more players to start!" else if game.Players > 2 then announcer.text = "Starting!"
Help please, idk what's wrong, it won't work.
LordBlanc |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2015 08:03 AM |
theres a lot of mistakes so.. ill just help you:
announcer = THIS IS WHERE YOU WRITE WHERE IT IS players = game.Players:GetChildren()
if #players < 2 then announcer.text = "You need 3 or more players to start!" else announcer.text = "Starting!" end
i think that should work, and obviously you need to change the announcer variabel, if it doesnt work, just give me the error code |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2015 08:03 AM |
This might work change 'else if game.Players > 2 then' to if game.Players > 3 then |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 11 Apr 2015 08:07 AM |
| Don't forget to check that every time a player is added |
|
|
| Report Abuse |
|
|
LordBlanc
|
  |
| Joined: 13 Dec 2013 |
| Total Posts: 91 |
|
|
| 11 Apr 2015 08:08 AM |
| Thank you Ell. You helped alot. :) It's working now! :D |
|
|
| Report Abuse |
|
|
Clxver
|
  |
| Joined: 19 Oct 2014 |
| Total Posts: 727 |
|
| |
|