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

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

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

✓ Accepted answer

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.

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