local S=game.ReplicatedStorage.CommonModules EFFECT_LIB=require(S.EffectLib)local function z(S,z)local J=(((S-math.floor(S/z)*z)/z)*math.pi)*2 local U=math.sin(J+0)*.5+.5 local K=math.sin(J+math.pi/2)*.5+.5 local t=math.sin(J+math.pi)*.5+.5 return Color3.new(U,K,t)end
--fetching effectlib
local common_modules = game.ReplicatedStorage.CommonModules
EFFECT_LIB = require(common_modules.EffectLib)

local function GenColor(t, rate)
	local get_t = ((t - math.floor(t / rate) * rate) / rate) * math.pi * 2

	local red = math.sin(get_t + 0) * 0.5 + 0.5
	local green = math.sin(get_t + math.pi / 2) * 0.5 + 0.5
	local blue = math.sin(get_t + math.pi) * 0.5 + 0.5

	return Color3.new(red, green, blue)
end
