generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Help me Please!

Previous Thread :: Next Thread 
dadibox1234 is not online. dadibox1234
Joined: 05 Dec 2013
Total Posts: 320
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
dadibox1234 is not online. dadibox1234
Joined: 05 Dec 2013
Total Posts: 320
11 Jun 2017 01:58 PM
UP
Report Abuse
dadibox1234 is not online. dadibox1234
Joined: 05 Dec 2013
Total Posts: 320
11 Jun 2017 02:19 PM
UP
Report Abuse
dadibox1234 is not online. dadibox1234
Joined: 05 Dec 2013
Total Posts: 320
11 Jun 2017 02:31 PM
UP
Report Abuse
ViciousSilence is not online. ViciousSilence
Joined: 02 Jun 2013
Total Posts: 912
11 Jun 2017 02:33 PM
Be more clear.


#code if you then break end
Report Abuse
dadibox1234 is not online. dadibox1234
Joined: 05 Dec 2013
Total Posts: 320
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
dadibox1234 is not online. dadibox1234
Joined: 05 Dec 2013
Total Posts: 320
11 Jun 2017 02:46 PM
UP
Report Abuse
K7Q is not online. 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
dadibox1234 is not online. dadibox1234
Joined: 05 Dec 2013
Total Posts: 320
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 is online. 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
dadibox1234 is not online. dadibox1234
Joined: 05 Dec 2013
Total Posts: 320
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 is online. 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
dadibox1234 is not online. dadibox1234
Joined: 05 Dec 2013
Total Posts: 320
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
dadibox1234 is not online. dadibox1234
Joined: 05 Dec 2013
Total Posts: 320
12 Jun 2017 09:09 AM
UP
Report Abuse
Milenveliki is not online. Milenveliki
Joined: 14 Aug 2013
Total Posts: 1097
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image