|
| 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 |
|
|
| |
|
|
| 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 |
|
|