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

Why does this script not work? What do i change to fix it? Expected Identifier

Asked by 8 years ago
01RainBower = while wait() do
02    script.Parent.TextColor3 = Color3.new(1,0,0)
03    for i=1,15 do
04        game:GetService("RunService").RenderStepped:wait()
05        script.Parent.TextColor3 = Color3.new(script.Parent.TextColor3.r,script.Parent.TextColor3.g+(17/255),script.Parent.TextColor3.b)
06    end
07    for i=1,15 do
08        game:GetService("RunService").RenderStepped:wait()
09        script.Parent.TextColor3 = Color3.new(script.Parent.TextColor3.r-(17/255),script.Parent.TextColor3.g,script.Parent.TextColor3.b)
10    end
11    for i=1,15 do
12        game:GetService("RunService").RenderStepped:wait()
13        script.Parent.TextColor3 = Color3.new(script.Parent.TextColor3.r,script.Parent.TextColor3.g,script.Parent.TextColor3.b+(17/255))
14    end
15    for i=1,15 do
View all 27 lines...

1 answer

Log in to vote
0
Answered by
Pejorem 164
8 years ago

People don't usually like debugging other people's scripts longer than 5 lines. If you use the print() statement a lot. You can narrow down your search to exactly where your script hiccups. If you then cannot understand why it is hiccuping. You can post the few lines that don't work here, asking why. Or you can post the entire script, detailing in which the line that causes the hiccup.

Ad

Answer this question