local q=game.ReplicatedStorage.CommonModules EFFECT_LIB=require(q.EffectLib)local function R(q,R)local Y=(((q-math.floor(q/R)*R)/R)*math.pi)*2 local h=math.sin(Y+0)*.5+.5 local X=math.sin(Y+math.pi/2)*.5+.5 local P=math.sin(Y+math.pi)*.5+.5 return Color3.new(h,X,P)end

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
