Unable to assign property Textcolor3. Color3 expected, got nil

So i got a log system where no colors are found
I am posting this for my friend because he can not post yet.
The issue currently is that i made a table, With color3 values being assigned to it. But instead i get an error
Script:

local RS = game:GetService("ReplicatedStorage")
local UILLF = script.Parent.UiListLayoutFrame  --UserInterfaceListLayoutFrame, I do it based on capitalization.
local TS = game:GetService("TweenService")
local Modes = {
  ["Normal"] = Color3.new(1, 1, 1),
  ["Warning"] = Color3.new(1, 1, 0.498039),
  ["Error"] = Color3.new(1, 0.321569, 0.321569),
  ["Danger"] = Color3.new(0.5,0,0)
}
local Sounds = {
  ["Danger"] = "rbxassetid://3165700530",
  ["Error"] = "rbxassetid://288561972"
}
function SystemLogs(Message,mode)
    local Color = table.find(Modes,mode)
    if mode == "Danger" or mode == "Error" then
      local Sound = Instance.new("Sound",script.Parent.Parent)
      Sound.SoundId=table.find(Sounds,mode)
    end
    LogClone.TextLabel.TextColor3=Color
    LogClone.BackgroundColor3=Color
    LogClone.Parent=UILLF
    LogClone.TextLabel.Text=">> "..Message
    LogClone.TextLabel.MaxVisibleGraphemes=0
    TS:Create(LogClone.UIGradient, TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut),{Offset=Vector2.new(0,0)}):Play()
    TS:Create(LogClone.TextLabel, TweenInfo.new(UILLF.TweenSpeed.Value, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut),{MaxVisibleGraphemes=100*1.5}):Play()
end
RS.SystemLog.Event:Connect(SystemLogs)

Please help me and my friend!

Technically i made the script so i really just posted this to fix my own issue

local RS = game:GetService("ReplicatedStorage")
local UILLF = script.Parent.UiListLayoutFrame  --UserInterfaceListLayoutFrame, I do it based on capitalization.
local TS = game:GetService("TweenService")
local Modes = {
  ["Normal"] = Color3.new(1, 1, 1),
  ["Warning"] = Color3.new(1, 1, 0.498039),
  ["Error"] = Color3.new(1, 0.321569, 0.321569),
  ["Danger"] = Color3.new(0.5,0,0)
}
local Sounds = {
  ["Danger"] = "rbxassetid://3165700530",
  ["Error"] = "rbxassetid://288561972"
}
function SystemLogs(Message,mode)
    local Color = Modes[mode]
    if table.find(Sounds, mode) then
      local Sound = Instance.new("Sound",script.Parent.Parent)
      Sound.SoundId=Sounds[mode]
    end
    LogClone.TextLabel.TextColor3=Color
    LogClone.BackgroundColor3=Color
    LogClone.Parent=UILLF
    LogClone.TextLabel.Text=">> "..Message
    LogClone.TextLabel.MaxVisibleGraphemes=0
    TS:Create(LogClone.UIGradient, TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut),{Offset=Vector2.new(0,0)}):Play()
    TS:Create(LogClone.TextLabel, TweenInfo.new(UILLF.TweenSpeed.Value, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut),{MaxVisibleGraphemes=100*1.5}):Play()
end
RS.SystemLog.Event:Connect(SystemLogs)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.