Workspace.PIDS.PIDS.Frame.TextLabel.Text = "A" Wait(5) Workspace.PIDS.PIDS.Frame.TextLabel.Text = "B" Wait(5) Workspace.PIDS.PIDS.Frame.TextLabel.Text = "C" Wait(5) Workspace.PIDS.PIDS.Frame.TextLabel.Text = "D" Wait(5)
l want to after Display D and wait(5) and return to A(not stop the Display),how should l do?
while true do workspace.PIDS.PIDS.Frame.TextLabel.Text = "A" wait(5) workspace.PIDS.PIDS.Frame.TextLabel.Text = "B" wait(5) workspace.PIDS.PIDS.Frame.TextLabel.Text = "C" wait(5) workspace.PIDS.PIDS.Frame.TextLabel.Text = "D" wait(5) end
Well, you could use the while true do end
loop and repeat until nil
loop. Try this;
repeat wait(0)until game:FindFirstChild("Workspace") and game.Workspace:FindFirstChild("PDIS")and game.Workspace.PDIS:FindFirstChild("PDIS")and game.Workspace.PDIS.PDIS:FindFirstChild("Frame")and game.Workspace.PDIS.PDIS.Frame:FindFirstChild("TextLabel") --I use this as a just-in-case while game.Workspace:FindFirstChild("PDIS")do game.Workspace.PIDS.PIDS.Frame.TextLabel.Text = "A" wait(5) game.Workspace.PIDS.PIDS.Frame.TextLabel.Text = "B" wait(5) game.Workspace.PIDS.PIDS.Frame.TextLabel.Text = "C" wait(5) game.Workspace.PIDS.PIDS.Frame.TextLabel.Text = "D" wait(5) end
The repeat until nil
loop is optional, I just use it as a just-in-case.
Hope this helped!