Scripting Issue

Well the issue could very well be there due to that. Try this:

local TweenTime = 0.5
local TweenInfoX =  TweenInfo.new(TweenTime, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
local Colors = {Color3.new(1, 0, 0),Color3.new(0.835294, 0.45098, 0.239216)--ect.}
task.spawn(function()
	while true do
		for Count = 1, #Colors do
			local GetColor = Colors[Count]
			local P = script.Parent
			local B = P:FindFirstChild("Beak")
			local UT = P:FindFirstChild("Upper Torso")
			local Table = {}
			table.insert(Table,P)
			if B then
				table.insert(Table,B)
			end
			if UT then
				table.insert(Table,UT)
			end
			for _, Object in ipairs(Table) do
				TweenService:Create(Object, TweenInfoX, {Color = GetColor}):Play()
			end
			task.wait(TweenTime)
		end
	end
end)

The ‘do’ is highlighted in red

Yea had to update two things, try again.

Edit: Make sure that it uses “ipairs” and not “pairs”

Same issue still occurs.

texthere

And it’s not because you’ve set up, so that everytime script.parent changes parent, it runs a new duplication of the task?

Can I ask why you use script.parent:GetPropertyChangedSignal(“Parent”) in the first place?

I’m changing the parent of it from a folder to the player’s hand, however I removed that and just made it so it enables all the scripts within the item.

I’m very certain that my script should function correctly, can you show me your setup?

Setup of what?

texthereeeeeeee

Hi

Off topic but,

you can use <words> to make text invisible, that way you don’t have to type “30”

Setup in your explorer, of the said script & item. The hierarchy if you may.

image

local CurrentColor = Color3.new(1, 0, 0)
local TweenService = game:GetService("TweenService")
local TweenTime = 0.5
local TweenInfoX =  TweenInfo.new(TweenTime, Enum.EasingStyle.Linear, Enum.EasingDirection.In)
local Counter = 1
local Colors = {Color3.new(1, 0, 0), Color3.new(1, 0.537255, 0.286275), Color3.new(1, 1, 0), Color3.new(0, 255, 0), Color3.new(0.0666667, 0, 1), Color3.new(1, 0, 1)}
task.spawn(function()
	local function Color()
		for Count = 1, #Colors do
			local P = script.Parent
			local B = P:FindFirstChild("Beak")
			local UT = P:FindFirstChild("Upper Torso")
			local Table = {}
			table.insert(Table,P)
			if B then
				table.insert(Table,B)
			end
			if UT then
				table.insert(Table,UT)
			end
			for _, Object in pairs(Table) do
				TweenService:Create(Object, TweenInfoX, {Color = Colors[Count]}):Play()
			end
			task.wait(TweenTime)
		end
	end
	task.spawn(function()
		while task.wait() and true do
			Color()
		end
	end)
end)

Try this.

local TweenService = game:GetService("TweenService")
local TweenTime = 0.5
local TweenInfoX =  TweenInfo.new(TweenTime, Enum.EasingStyle.Linear, Enum.EasingDirection.In)
local Colors = {Color3.new(1, 0, 0), Color3.new(1, 0.537255, 0.286275), Color3.new(1, 1, 0), Color3.new(0, 255, 0), Color3.new(0.0666667, 0, 1), Color3.new(1, 0, 1)}
while true do
	for Count = 1, #Colors do
		local GetColor = Colors[Count]
		local P = script.Parent
		local B = P:FindFirstChild("Beak")
		local UT = P:FindFirstChild("Upper Torso")
		local Table = {}
		table.insert(Table,P)
		if B then
			table.insert(Table,B)
		end
		if UT then
			table.insert(Table,UT)
		end
		for _, Object in ipairs(Table) do
			TweenService:Create(Object, TweenInfoX, {Color = GetColor}):Play()
		end
		task.wait(TweenTime)
	end
end
1 Like

Just looks like the exact same thing I had without the function, no it doesn’t work.

Replace all Color3.new with Color.fromRGB(), change their values to the colors you want, and take an exact copy of the script I posted above and use.

The reason for the flickering is, that color3.new only accept values between 0-1.

1 Like

THANK YOU SO MUCH!!!

textheree

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.