Recommended Update:
Change this:
selectedColor = colors.default
To this:
--New Color Defined For an Error of the Color3 Received
local colors = {
NILColor = Color3.fromRGB(79, 79, 79), --New color
alert = Color3.fromRGB(255, 105, 105),
success = Color3.fromRGB(105, 255, 105),
warning = Color3.fromRGB(255, 255, 105),
info = Color3.fromRGB(105, 105, 255),
default = Color3.fromRGB(255, 255, 255)
}
--Also replace the Old Selected ColorStuff, i had to make sure the Thing sent is actully a string or Table
local selectedColor = colors.default
if type(color)=="string" then
if string.lower(color) == "alert" or string.lower(color) == "success" or string.lower(color) == "warning" or string.lower(color) == "info" or string.lower(color) == "default" then
if string.lower(color) == "alert" then
selectedColor = colors.alert
end
if string.lower(color) == "success" then
selectedColor = colors.success
end
if string.lower(color) == "warning" then
selectedColor = colors.warning
end
if string.lower(color) == "info" then
selectedColor = colors.info
end
if string.lower(color) == "default" then
selectedColor = colors.default
end
else
selectedColor = colors.NILColor
end
elseif type(color)=="table" then
--The New DefaultColor System
if color.R==nil or color.G==nil or color.B==nil then
selectedColor = colors.NILColor
else
selectedColor = Color3.fromRGB(math.clamp(color.R*255,0,255), math.clamp(color.G*255,0,255), math.clamp(color.B*255,0,255))
end
else
selectedColor = colors.NILColor
end
i also Added Instructions for the new Color3 RGB system to the “Instructions” script:
[[
Current Colors:
alert - Red
success - Green
warning - Yellow
info - Blue
default - White
NILColor - Gray(this color means the custom color sent had an NIL value)
Custom Color System(Added In):
1: To Display custom colors Just Send this through the regular Color varible, Start with this format:
local Color = {
["R"]=255, --Clamped To 0-255
["G"]=0, --Clamped To 0-255
["B"]=0, --Clamped To 0-255
}
2: Then Send that into Notify just like before:
local notify = require(notify) -- Replace "notify" with the location of the module
local color = {["R"]=255, ["G"]=0, ["B"]=0,}
notify.notify(target,title,text,color,dur)
3: You should Now have custom colors,
Side note!!: If it failed, the Notify Popups will use gray(Meaning You Did not send the Format Correctly)
]]