--script.Color.Disabled = false


local function GetRotation(alpha)
    local cos = math.cos(math.rad(alpha))
    --warn(cos)
    --warn('Deg'..cos * 57.2958)
    return cos*multiplier + min
end

while true do

for a = 0,90,1 do
    script.Parent.Rotation = script.Parent.Rotation + GetRotation(a)
    game:GetService('RunService').RenderStepped:Wait()
end

for a = 90,0,-1 do
    script.Parent.Rotation = script.Parent.Rotation + GetRotation(a)
    --wait()
    game:GetService('RunService').RenderStepped:Wait()
end

wait()

end
