Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ function helpers.getValuesFromType(data)
return { data.X, data.Y, data.Z }
elseif dataType == "Color3" then
return { data.R, data.G, data.B }
elseif dataType == "NumberRange" then
return { data.Min, data.Max }
end

error("Unsupported type: " .. dataType)
Expand All @@ -35,6 +37,8 @@ function helpers.getTypeFromValues(type: string, values: { number })
return Vector3.new(values[1], values[2], values[3])
elseif type == "Color3" then
return Color3.new(values[1], values[2], values[3])
elseif type == "NumberRange" then
return NumberRange.new(values[1], values[2])
end

error("Unsupported type: " .. type)
Expand Down