I just want to know how to fix this issue, it’s really annoying and broke a lot of previous stuff I had in my game
Whenever I type in “/e admin”, it returns with
21:04:01.309 Stack Begin - Studio
21:04:01.309 Script '0.02201785289499927.Config.Plugins.Server: Example Plugin', Line 30 - Studio
21:04:01.309 Script 'required_asset_7510592873.MainModule.Shared.GoodSignal', Line 62 - function acquireRunnerThreadAndCallEventHandler - Studio
21:04:01.309 Script 'required_asset_7510592873.MainModule.Shared.GoodSignal', Line 77 - function runEventHandlerInFreeThread - Studio
21:04:01.309 Stack End - Studio
21:04:01.817 ▶ Failed to load sound rbxassetid://181027147: Requested asset is archived (x121) -
(The archived sound is most likely not apart of it, just note)
None of the solutions I could find pertaining to concatenate and nil haven’t worked since it’s sort of a niche error
I’ve tried switching to the new chat system stuff like MessageRecieved or even OnIncomingMessage but none of that works, I know it’s an error with nil but why is it even happening? Even a print under it won’t fire so it’s something with the “Chatted” I’m assuming
game:GetService("Players").PlayerAdded:connect(function(p)
task.wait(1)
for i,v in next, bannedlist do
if tostring(p.Name) == i then
store:SetAsync(p.Name, true)
elseif tostring(p.UserId) == i then
store:SetAsync(p.UserId, true)
end
end
if store:GetAsync(p.UserId, true) then
p:Kick('You have been banned by a staff member')
elseif store:GetAsync(p.Name, true) then
p:Kick('You have been banned by a staff member')
end
p.Chatted:Connect(function(m)
print(m)
if m == "/e !admin" then
if p:GetRankInGroup(35304452) >= 244 then
local gui = game.ServerStorage.AdminGui:Clone()
gui.Parent = p.PlayerGui
end
-- elseif m == "/e !bank" then
-- if p:GetRankInGroup(35304452) >= 5 or table.find(whitelist, p.UserId) or table.find(bankTesters, p.UserId) then
-- local gui = game.ServerStorage.BetaBank:Clone()
-- gui.Name = "Bank";
-- p.PlayerGui:FindFirstChild("Bank"):Destroy();
-- gui.Parent = p.PlayerGui
-- end
--elseif m == "/e !appeals" then
-- if p:GetRankInGroup(35304452) >= 5 or table.find(whitelist, p.UserId) or appealsTeam:GetAsync(p.UserId) ~= nil or appealsDivision:GetAsync(p.UserId) ~= nil then
-- local gui = game.ServerStorage.AppealGUI:Clone()
-- gui.Parent = p.PlayerGui
-- end
--elseif m == "/e !logs" then
-- if p:GetRankInGroup(35304452) >= 5 or table.find(whitelist, p.UserId) then
-- game.ReplicatedStorage.GetLogs:Fire(p)
end
end
end)
end)
Also note that x, store, whitelist, and banktester, appealsdivision, and bannedlist do exist and are just outside of the sample given
