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 7 years ago
RainBower = while wait() do
    script.Parent.TextColor3 = Color3.new(1,0,0)
    for i=1,15 do
        game:GetService("RunService").RenderStepped:wait()
        script.Parent.TextColor3 = Color3.new(script.Parent.TextColor3.r,script.Parent.TextColor3.g+(17/255),script.Parent.TextColor3.b)
    end
    for i=1,15 do
        game:GetService("RunService").RenderStepped:wait()
        script.Parent.TextColor3 = Color3.new(script.Parent.TextColor3.r-(17/255),script.Parent.TextColor3.g,script.Parent.TextColor3.b)
    end
    for i=1,15 do
        game:GetService("RunService").RenderStepped:wait()
        script.Parent.TextColor3 = Color3.new(script.Parent.TextColor3.r,script.Parent.TextColor3.g,script.Parent.TextColor3.b+(17/255))
    end
    for i=1,15 do
        game:GetService("RunService").RenderStepped:wait()
        script.Parent.TextColor3 = Color3.new(script.Parent.TextColor3.r,script.Parent.TextColor3.g-(17/255),script.Parent.TextColor3.b)
    end
    for i=1,15 do
        game:GetService("RunService").RenderStepped:wait()
        script.Parent.TextColor3 = Color3.new(script.Parent.TextColor3.r+(17/255),script.Parent.TextColor3.g,script.Parent.TextColor3.b)
    end
    for i=1,15 do
        game:GetService("RunService").RenderStepped:wait()
        script.Parent.TextColor3 = Color3.new(script.Parent.TextColor3.r,script.Parent.TextColor3.g,script.Parent.TextColor3.b-(17/255))
    end
end

1 answer

Log in to vote
0
Answered by
Pejorem 164
7 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