diff --git a/src/spring.luau b/src/spring.luau index 9386f46..01797ad 100644 --- a/src/spring.luau +++ b/src/spring.luau @@ -111,7 +111,7 @@ local vec6_to_type = { end :: Vec6ToType, Color3 = function(v) - return Color3.new(math.max(v.X, 0), math.max(v.Y, 0), math.max(v.Z, 0)) + return Color3.new(math.clamp(v.X, 0, 1), math.clamp(v.Y, 0, 1), math.clamp(v.Z, 0, 1)) end :: Vec6ToType, UDim = function(v)