svcRun.RenderStepped:Connect(function()for Q,z in pairs(confetti)do if confettiColors then z:SetColors(confettiColors)end z.Enabled=confettiActive z:Update()end end)local Q=function(Q)confettiColors=Q spawn(function()confettiActive=true wait(tick)confettiActive=false end)end while wait(5)do Q({Color3.fromRGB(255,0,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,0,255)})end
-- Update position of all confetti.
svcRun.RenderStepped:Connect(function()
	for _, val in pairs(confetti) do
		if confettiColors then
			val:SetColors(confettiColors)
		end
		val.Enabled = confettiActive
		val:Update()
	end
end)

local fire = function(paramColors)
	confettiColors = paramColors
	spawn(function()
		confettiActive = true
		wait(tick)
		confettiActive = false
	end)
end
while wait(5) do
	fire({ Color3.fromRGB(255, 0, 0), Color3.fromRGB(0, 255, 0), Color3.fromRGB(0, 0, 255) })
end
