Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

What wrong with this?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
while true do
wait(0.05)

if script.Parent.Parent.Control.Value == 0.03 then
while true do
script.Parent.a.SurfaceGui.TextLabel.Text = "This train Terminus here."
script.Parent.b.SurfaceGui.TextLabel.Text = "You can exit this train"
wait(5)
script.Parent.a.SurfaceGui.TextLabel.Text = "or stay here"
script.Parent.b.SurfaceGui.TextLabel.Text = ""
wait(5)

if script.Parent.Parent.Control.Value == 0.05 then
script.Parent.a.SurfaceGui.TextLabel.Text = "Ad.test"
script.Parent.b.SurfaceGui.TextLabel.Text = "Ad.test"


end
end
end
end

This script not is full staple Wrong:The script do no to anything! Value:Number Value l need a fixed script

1 answer

Log in to vote
0
Answered by 9 years ago
while wait() do
    if script.Parent.Parent.Control.Value == 0.03 then
        script.Parent.a.SurfaceGui.TextLabel.Text = "This train Terminus here."
        script.Parent.b.SurfaceGui.TextLabel.Text = "You can exit this train"
        wait(5)
        script.Parent.a.SurfaceGui.TextLabel.Text = "or stay here"
        script.Parent.b.SurfaceGui.TextLabel.Text = ""
        wait(5)     
        if script.Parent.Parent.Control.Value == 0.05 then
            script.Parent.a.SurfaceGui.TextLabel.Text = "Ad.test"
            script.Parent.b.SurfaceGui.TextLabel.Text = "Ad.test"
        end
    end
end

Try this and then if it dosent work, tell me what the output is and I can edit it.

0
SurfaceGui is not a valid member of Script 7785543 2 — 9y
0
then i believe where it has script.Parent,a,SurfaceGui is where problem is. are you sure there is something called a or b? NinjoOnline 1146 — 9y
Ad

Answer this question