This issue is related to EchoChat, more information here.
I just installed EchoChat into my game, and I get this weird error when I run my game in Studio:
required_asset_5142179869.MainModule:57: attempt to compare string < number
Here’s my script (I’ve modified it to my liking):
local Selected_Version = "Latest_Release"
local Loader_Version = "Latest_Release"
local Configuration = {
Server = {
Moderators = {
Bluegenic = 5,
salehyou900 = 4,
AAA20083 = 3,
},
CustomAvatars = {
},
Statuses = {
},
CharacterLimitPerMessage = 280,
ChatLogPermissions = 5,
MaxChannelsPerPlayer = 5,
MessagesPerSecondLimit = 1,
DisableChatLogs = false
},
Client = {
NameColors = {
Color3.fromRGB(0, 166, 255),
Color3.fromRGB(255, 234, 0),
Color3.fromRGB(182, 0, 0),
Color3.fromRGB(31, 212, 0),
Color3.fromRGB(255, 114, 255),
Color3.fromRGB(128, 0, 255),
Color3.fromRGB(116, 62, 0),
Color3.fromRGB(255, 140, 0)
},
DarkChatBubbles = true,
DisableChatBubbles = false,
DefaultText = "Say something!",
ForceCompactMode = false
}
}
local EchoChat = script:FindFirstChildOfClass("ModuleScript")
local Addons = script:FindFirstChild("Addons")
local function LoadEchoChat(ModuleScript)
local chat = require(ModuleScript)
local supportedVersion = chat.Setup(Configuration, Addons, script, nil, Loader_Version)
if supportedVersion then
LoadEchoChat(supportedVersion)
end
end
if EchoChat then
LoadEchoChat(EchoChat)
else
local Version = require(5142179869).Releases[Selected_Version] or 5142179869
LoadEchoChat(Version)
end
Thanks in advance.