--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
