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: Script Help.

Previous Thread :: Next Thread 
textartotoboy2 is not online. textartotoboy2
Joined: 24 Jul 2012
Total Posts: 368
03 Sep 2016 03:11 PM
wait(3)
local Players = game.Players:GetChildren()

function UpdateGuis()
for x = 1, #Players do
local P = Players[x]
local Player = P


if Player:FindFirstChild("PlayerGui") == nil then
repeat wait() until Player:FindFirstChild("PlayerGui")
end

Player:FindFirstChild("PlayerGui").ScreenGui.Main.Visible = true
wait(0.5)
Player:FindFirstChild("PlayerGui").ScreenGui.Main.Visible = false
end
end

while wait() do
UpdateGuis()
print("P")
end

Is this the correct way to update all player's GUI's?


Thanks.
Report Abuse
textartotoboy2 is not online. textartotoboy2
Joined: 24 Jul 2012
Total Posts: 368
03 Sep 2016 03:15 PM
B1.
Report Abuse
PurelyMystic is not online. PurelyMystic
Joined: 24 May 2010
Total Posts: 931
03 Sep 2016 03:15 PM
Nah,
function plrs()
for i,v in pairs(game.Players:GetPlayers()) do
if v.PlayerGui:FindFirstChild("ScreenGui") then
v.PlayerGui.ScreenGui.Main.Visible = true
wait(0.5)
v.PlayerGui.ScreenGui.Main.Visible = false
end
end
end

while true do
wait()
plrs()
print("P")
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