PeerPants
|
  |
| Joined: 09 Nov 2007 |
| Total Posts: 7393 |
|
|
| 30 Mar 2013 06:29 AM |
while game.Workspace.LessThan3.Value = 1 do game.Workspace.Message.Text = 'Waiting For 3+ Players.' wait(1) game.Workspace.Message.Text = 'Waiting For 3+ Players..' wait(1) game.Workspace.Message.Text = 'Waiting For 3+ Players...' wait(1) game.Workspace.Message.Text = 'Waiting For 3+ Players..' wait(1) |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2013 06:35 AM |
while game.Workspace.LessThan3.Value == 1 do --Forgot an '=' game.Workspace.Message.Text = 'Waiting For 3+ Players.' wait(1) game.Workspace.Message.Text = 'Waiting For 3+ Players..' wait(1) game.Workspace.Message.Text = 'Waiting For 3+ Players...' wait(1) game.Workspace.Message.Text = 'Waiting For 3+ Players..' wait(1) |
|
|
| Report Abuse |
|
|
PeerPants
|
  |
| Joined: 09 Nov 2007 |
| Total Posts: 7393 |
|
|
| 30 Mar 2013 06:36 AM |
Oh yeah, thanks.
It's still early in the morning ._. |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2013 06:37 AM |
Aren't you supposed to while true do?
and I don't think LessThan3.Value is right. |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Mar 2013 06:38 AM |
No, you can do while Value == 0 do. I think it will only loop if the Value is equal to 0. |
|
|
| Report Abuse |
|
|
Azarth
|
  |
| Joined: 17 Aug 2012 |
| Total Posts: 2760 |
|
|
| 30 Mar 2013 06:41 AM |
This is more efficient.
local minPlayers = 5 local m = Instance.new("Message", Workspace)
game.Players.PlayerAdded:connect(function(player) repeat wait() until player m.Text = "Waiting for " .. minPlayers - game.Players.NumPlayers .. " more players" end) |
|
|
| Report Abuse |
|
|
Azarth
|
  |
| Joined: 17 Aug 2012 |
| Total Posts: 2760 |
|
|
| 30 Mar 2013 06:43 AM |
--edit
local minPlayers = 5 local m = Instance.new("Message", Workspace)
game.Players.PlayerAdded:connect(function(player) repeat wait() until player if game.Players.NumPlayers ~= minPlayers then m.Text = "Waiting for " .. minPlayers - game.Players.NumPlayers .. " more players" else m.Parent = nil -- Not destroy, so you can use later. end end) |
|
|
| Report Abuse |
|
|
montymax
|
  |
| Joined: 20 Sep 2009 |
| Total Posts: 1462 |
|
| |
|
|
| 30 Mar 2013 06:48 AM |
| Yeah, use Azarth's way. It's more efficient. |
|
|
| Report Abuse |
|
|
PeerPants
|
  |
| Joined: 09 Nov 2007 |
| Total Posts: 7393 |
|
| |
|