while true do
game.StarterGui.Ad1.Advertisment1.Visible = true
wait(10)
end
is what i tried. but it only opens once. pls help theres almost no source which could help me with it..
while true do
game.StarterGui.Ad1.Advertisment1.Visible = true
wait(10)
end
is what i tried. but it only opens once. pls help theres almost no source which could help me with it..
You have to put this script as a local script in the menu (The Advertisment1 Menu)
while true do
script.Parent.Visible = true
wait(10)
end
Thank you!
So basically your going to want to write your code like this.
while true do
wait(10)
game.StarterGui.Ad1.Advertisment1.Visible = true
end
This is the same script that nikodemos provided, except the wait is first. This solution won't work, because the change needs to be applied to the GUI in the player's character, not in StarterGui.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
I know somebody already answered this, but StarterGui only affects what the player sees when they join/reset. PlayerGui is what they are currently seeing on their screen, so you need to change that instead of StarterGui.