The reason it is not working is because you have it going into game.StarterGui
StarterGui isn't seen by the player, so I would suggest putting this script in StarterGui, and changing the script accordingly. If you want all players to see the same things at the same time this isn't correct
local i = 1
repeat
script.Parent.Main1.Frame1.Visible = true
script.Parent.Main1.Frame.Visible = true
script.Parent.TextLabel.Visible = true
wait(15)
script.Parent.Main1.Frame1.Visible = false
script.Parent.Main1.Frame.Visible = false
script.Parent.Main1.TextLabel.Visible = false
script.Parent.Gamepass.Frame1.Visible = true
script.Parent.Gamepass.Frame.Visible = true
script.Parent.Gamepass.TextLabel.Visible = true
wait(15)
script.Parent.Gamepass.Frame1.Visible = false
script.Parent.Gamepass.Frame.Visible = false
script.Parent.Gamepass.TextLabel.Visible = false
script.Parent.Credits.Frame1.Visible = true
script.Parent.Credits.Frame.Visible = true
script.Parent.Credits.TextLabel.Visible = true
wait(15)
script.Parent.Credits.Frame1.Visible = false
script.Parent.Credits.Frame.Visible = false
script.Parent.Credits.TextLabel.Visible = false
until i==2
Added
while ___ do could also be used to make this more efficient. EXAMPLE:
local i = 1
while true do
wait(1)
if i == 1 then
script.Parent.Main1.Frame1.Visible = true
script.Parent.Main1.Frame.Visible = true
script.Parent.TextLabel.Visible = true
wait(15)
script.Parent.Main1.Frame1.Visible = false
script.Parent.Main1.Frame.Visible = false
script.Parent.Main1.TextLabel.Visible = false
script.Parent.Gamepass.Frame1.Visible = true
script.Parent.Gamepass.Frame.Visible = true
script.Parent.Gamepass.TextLabel.Visible = true
wait(15)
script.Parent.Gamepass.Frame1.Visible = false
script.Parent.Gamepass.Frame.Visible = false
script.Parent.Gamepass.TextLabel.Visible = false
script.Parent.Credits.Frame1.Visible = true
script.Parent.Credits.Frame.Visible = true
script.Parent.Credits.TextLabel.Visible = true
wait(15)
script.Parent.Credits.Frame1.Visible = false
script.Parent.Credits.Frame.Visible = false
script.Parent.Credits.TextLabel.Visible = false
else
print 'i isnt 1'
end
end
Accept the answer if this helped, please, and remember to be more specific in your questions to get accurate answers
If anyone notices something wrong, let me know please.
THANKS!
2 comments
What isn't working? Did you get any type of error in the Output? What about it isn't working? From what I'm seeing, your only changing the properties for 'StarterGui''s version, and not the Players.
Alpha. The reason it isn't working is because it's not accessing the player's GUI's it's just accessing the StarterGui...