I sort of lied, this is a two part question.
**Info:**I know this is in a global function, I call it in another script. Also the part with the Screen Gui is alright so that you shouldn't need to worry about.
_G["survivor"] = function()
for i,v in pairs(game.Players:GetPlayers()) do
v.PlayerGui.ScreenGui.survivor.Visible = true
v.PlayerGui.ScreenGui.survivor.Visible = true
v.PlayerGui.ScreenGui.survivor.Visible = true
v.PlayerGui.ScreenGui.survivor.Visible = true
v.PlayerGui.ScreenGui.survivor.Visible = true
v.PlayerGui.ScreenGui.survivor.Visible = true
v.PlayerGui.ScreenGui.survivor.Visible = true
v.PlayerGui.ScreenGui.survivor.Visible = true
v.PlayerGui.ScreenGui.survivor.Visible = true
v.PlayerGui.ScreenGui.survivor.Visible = true
v.PlayerGui.ScreenGui.survivor.Visible = true
v.PlayerGui.ScreenGui.survivor.Visible = true
wait(4)
v.PlayerGui.ScreenGui.survivor.Visible = false
v.PlayerGui.ScreenGui.survivor.Visible = false
v.PlayerGui.ScreenGui.survivor.Visible = false
v.PlayerGui.ScreenGui.survivor.Visible = false
v.PlayerGui.ScreenGui.survivor.Visible = false
v.PlayerGui.ScreenGui.survivor.Visible = false
v.PlayerGui.ScreenGui.survivor.Visible = false
v.PlayerGui.ScreenGui.survivor.Visible = false
v.PlayerGui.ScreenGui.survivor.Visible = false
v.PlayerGui.ScreenGui.survivor.Visible = false
v.PlayerGui.ScreenGui.survivor.Visible = false
v.PlayerGui.ScreenGui.survivor.Visible = false
wait(1)
end
end
- How can I eliminate the excessive amounts of the same lines. I'm sure you can use a for loop but, I am not very good with them so if anyone can explain that would be great.
2)Whenever I test it with another player it will show up on the first person's screen, wait for it to finish, then goes to the next person, until it has done all the players. Is there a way to make it appear all at one time?
I really hope this makes some sense. Thanks :)

2 comments
Why exactly are you using the same line over 10 times?
Because for some reason I ran into a strange problem(never did solve) where only one person could see it so when I do it over and over it works.