|
| 11 Jun 2017 01:27 PM |
Thise script make one per one player example if i need to wait 30Sec and i have 2 player i gonna wait 60Sec Someone know how to fix thise?
EXAMPLE:
for i,v in pairs(game.Players:GetPlayers()) do local uis = v.PlayerGui for i = 30, 0, -1 do uis.Gui.Frame.Text.Text = i.. " second" ..(i == 1 and "" or "s").. " left until round begins." wait(1) end uis.Gui.Frame.Visible=false end
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 11 Jun 2017 02:33 PM |
Be more clear.
#code if you then break end |
|
|
| Report Abuse |
|
|
|
| 11 Jun 2017 02:41 PM |
I gonna be clear ...
Sec is 30 if player in server = 2 then Sec is 60 ,That's my problem i hope that's clear... |
|
|
| Report Abuse |
|
|
| |
|
K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
|
| 11 Jun 2017 03:11 PM |
get the number of players and mulitply that by thirty and put that as ur larger number in the for i loop
for example
xt = game.Players.Whateveramountofplayers * 30 for i = xt,0, -1 stuff end
|
|
|
| Report Abuse |
|
|
|
| 12 Jun 2017 07:34 AM |
for i = 30, 0, -1 do local t = game.Players.NumPlayers print("Starting With "..t.." Players!") xt = t * 30 for y = xt,0, -1 do uis = game.Players:GetPlayers().PlayerGui uis.Gui.Frame.Text.Text = i.. " second" ..(i == 1 and "" or "s").. " left until round begins!" wait(1) end Like that? |
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 12 Jun 2017 07:45 AM |
game.Players.NumPlayers is deprecated do #game.Players:GetPlayers() |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2017 08:16 AM |
That's the same... :/
Code :
local t = #game.Players:GetPlayers() print("Starting With "..t.." Players!") xt = t * 30 for y = xt,0, -1 do for i = 30, 0, -1 do uis = game.Players:GetPlayers().PlayerGui uis.Gui.Frame.Text.Text = i.. " second" ..(i == 1 and "" or "s").. " left until round begins!" wait(1) end
|
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 12 Jun 2017 08:32 AM |
because you're trying to change a property of a table? "uis = game.Players:GEtPlayers().PlayerGui"
|
|
|
| Report Abuse |
|
|
|
| 12 Jun 2017 08:37 AM |
That script work but it do one per one player. Can you help me for fix this?
for i,v in pairs(game.Players:GetPlayers()) do local uis = v.PlayerGui for i = 30, 0, -1 do uis.Gui.Frame.Text.Text = i.. " second" ..(i == 1 and "" or "s").. " left until round begins!" wait(.1) end |
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Jun 2017 10:44 AM |
plrs=game.Players:GetPlayers() wt=30 a=game.Players.PlayerAdded:connect(function() wt=wt*2 end) b=game.Players.PlayerRemoving:connect(function() wt=wt/2 end) for x=1,#plrs do wt=wt*2 end repeat wait(1)wt=wt-1 uis.Gui.Frame.Text.Text = wt.. " second" ..(wt == 1 and "" or "s").. [[ left until round begins!]] until wt<1;a:disconnect()b:disconnect() --round begins
|
|
|
| Report Abuse |
|
|