Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

What wrong with this?

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

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.

2 comments

0

SurfaceGui is not a valid member of Script

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?

This discussion is preserved as it was. New answers, comments, and votes are closed.