Virtecc
|
  |
| Joined: 13 Mar 2016 |
| Total Posts: 143 |
|
|
| 20 Nov 2017 07:20 PM |
| Right now Im making an fps game, and I want to make it so you need at least to players to start a round. Please help. |
|
|
| Report Abuse |
|
|
Virtecc
|
  |
| Joined: 13 Mar 2016 |
| Total Posts: 143 |
|
| |
|
Chrounum
|
  |
| Joined: 04 Apr 2015 |
| Total Posts: 2911 |
|
|
| 20 Nov 2017 07:47 PM |
iterate over all the players, and then check if the #players is > number
#code print("don't forget to dry the towel after use") |
|
|
| Report Abuse |
|
|
TaaRt
|
  |
| Joined: 26 Apr 2009 |
| Total Posts: 5039 |
|
|
| 20 Nov 2017 07:48 PM |
| @Chrounum or uhm, use #game.Players:GetPlayers() to begin with |
|
|
| Report Abuse |
|
|
Chrounum
|
  |
| Joined: 04 Apr 2015 |
| Total Posts: 2911 |
|
|
| 20 Nov 2017 07:49 PM |
or that
#code print("don't forget to dry the towel after use") |
|
|
| Report Abuse |
|
|
gryphunk2
|
  |
| Joined: 04 Mar 2013 |
| Total Posts: 10872 |
|
|
| 20 Nov 2017 07:53 PM |
local plrs = game:GetService("Players") if plrs.NumPlayers >= 5 then print("YEET") end
heccled by the master heccler again |
|
|
| Report Abuse |
|
|
Virtecc
|
  |
| Joined: 13 Mar 2016 |
| Total Posts: 143 |
|
|
| 20 Nov 2017 07:56 PM |
What I have scripted:
if game . Players . Num Players >= # then <-- Spaced out because of tags. game. Workspace . Baseplate: Destroy() <-- Just to see if it works. end |
|
|
| Report Abuse |
|
|
Virtecc
|
  |
| Joined: 13 Mar 2016 |
| Total Posts: 143 |
|
|
| 20 Nov 2017 08:01 PM |
| It does not work...................... |
|
|
| Report Abuse |
|
|