I want this gui to show for all players, for some reason it is only showing on one players screen. My guess is that it is something to do with the variables being reassigned before the script has a chance to run through or something like that?
**UPDATED SCRIPT THANKS TO HELP FROM chararray256 **
function mem(v) print(1) coroutine.wrap(function() print(2) repeat wait() print("waiting") until v:FindFirstChild("PlayerGui") gui = v:FindFirstChild("PlayerGui").Loading.d print(3) wait() gui.Image = "http://www.roblox.com/asset/?id=154661376" gui.Visible = true print(4) for i = 1,10 do for a,b in pairs(introGuis) do print("try") gui.Image = "http://www.roblox.com/asset/?id=" .. b wait(.1) end end gui.Visible = false end)() end for i,v in pairs(game.Players:GetPlayers()) do mem(v)end
Try this:
function GiveGui(v) print(1) coroutine.wrap(function() print(2) repeat wait() print("waiting") until v:FindFirstChild("PlayerGui") gui = v:FindFirstChild("PlayerGui").Loading.d print(3) wait() gui.Image = "http://www.roblox.com/asset/?id=154661376" gui.Visible = true print(4) for i = 1,10 do for a,b in pairs(introGuis) do print("try") gui.Image = "http://www.roblox.com/asset/?id=" .. b wait(.1) end end wait(5) gui.Visible = false end)() end for i,v in pairs(game.Players:GetPlayers() do GiveGui(v) end game.Players.PlayerAdded:connect(GiveGui)
Your script didn't work because it was ran only once, when the server was started.
I read somewhere that "if it's placed in a PlayerGui then it will display to one person but if it's placed in workspace then it will display to everyone