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: change all players guis?

Previous Thread :: Next Thread 
ArknausRIP is online. ArknausRIP
Joined: 24 Dec 2015
Total Posts: 516
09 May 2017 12:41 PM
i'm trying to make a script so when 2 players are in the game it will change all the players guis to a countdown but I am having trouble any help?

game.Players.PlayerAdded:connect(function(player)
if game.Players.NumPlayers == 2 then

countDown()
end
end)
Report Abuse
Valyrian_Advisor is not online. Valyrian_Advisor
Joined: 13 Apr 2013
Total Posts: 1703
09 May 2017 01:23 PM
In my game I just made the timer in a server script and fired all clients with a remote event every second.
Report Abuse
ArknausRIP is online. ArknausRIP
Joined: 24 Dec 2015
Total Posts: 516
09 May 2017 01:27 PM
wouldn't there be a more efficient way of doing it though?
Report Abuse
JayDLongoisJaysler is not online. JayDLongoisJaysler
Joined: 19 Oct 2016
Total Posts: 327
09 May 2017 01:33 PM
countDown() = wait'number' then, a frame
Report Abuse
ArknausRIP is online. ArknausRIP
Joined: 24 Dec 2015
Total Posts: 516
09 May 2017 01:33 PM
^ i am trying to get all the players guis so I can change them all at once.
Report Abuse
TheCaptainTeach is online. TheCaptainTeach
Joined: 11 Jul 2015
Total Posts: 3846
09 May 2017 02:16 PM
"wouldn't there be a more efficient way of doing it though?"
I seriously don't see how his say is inefficient.
Report Abuse
Diligent_Coder is not online. Diligent_Coder
Joined: 20 Jul 2011
Total Posts: 1314
09 May 2017 02:21 PM
I fire all clients with the countdown value, and let the clients handle the countdown
Report Abuse
ArknausRIP is online. ArknausRIP
Joined: 24 Dec 2015
Total Posts: 516
09 May 2017 02:40 PM
could anyone give an example? I am bad with remote events
Report Abuse
Diligent_Coder is not online. Diligent_Coder
Joined: 20 Jul 2011
Total Posts: 1314
09 May 2017 02:47 PM
--Server

RE:FireAllClients(60)


-- Local script, player

RE.OnClientEvent:Connect(function(Time)
for x = Time,0,-1 do wait(1)
print(x)
end
end)
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