yea kinda… tonumber needs a argument with UTF8’s numbers only. From what i see. You should try
tonumber(exampleSplit[1]). If it still doesnt works. It means that the exampleSplit is currently having other rather than the numbers.
local DarkThemeStartSplitted = plugin:GetSetting(DARK_THEME_START):split(":")
print(DarkThemeStartSplitted)
if tonumber(DarkThemeStartSplitted[1]) >= hour then
--my code
end
Uploaded everything that is needed, and what basically causes the error.
local DarkThemeStartSplitted = plugin:GetSetting(DARK_THEME_START):split(":")
print(DarkThemeStartSplitted)
if tonumber(DarkThemeStartSplitted[1]) >= tonumber(hour) then
--my code
end