So I'm coding something for an MTA group, and the ScreenGUI's text is not looping, is it because I need to have the frame visible and invisible during that time. I know how to code it on a SurfaceGUI, but it doesn't work on ScreenGUI, Here's the code:
local display = (script.Parent.Parent.Frame.TextLabel) while true do display.Text = "WEST HEMPSTEAD TRAIN" wait(1.5) display.Text = "NEXT STOP" wait(1.5) display.Text = "VALLEY STREAM" wait(1.5) display.text = "TRAIN 6900" wait(1.5) end
You didn't capitalize the bottom .Text so that probably breaks it.
Remove the brackets in the variable since you don't need them and test again
Versus using variables, you might be able to do this:
while true do workspace.SurfaceGui.Text = "WEST HEMPSTEAD TRAIN" wait(1.5) workspace.SurfaceGui.Text = "NEXT STOP" wait(1.5) workspace.SurfaceGui.Text = "VALLEY STREAM" wait(1.5) workspace.SurfaceGui.Text = "TRAIN 6900" -- Some of this may differ depending where the TextLabel is. wait(1.5)
end