repeat wait()
print('Game not loading')
until
game:IsLoaded() == true
local Players = game:GetService('Players')
local Player = Players.LocalPlayer
local Remote = game.ReplicatedStorage.Remotes.ExecuteCommand
local Commands = {
"/re",
"/dummy",
"/r6",
"r15",
"/rmap",
"/run"
}
Player.Chatted:Connect(function(msg)
msg:lower()
print(msg)
if msg == Commands[1]:lower() then
Remote:FireServer("RespawnCharacter")
end
if msg:split(" ")[1]:lower() == Commands[2]:lower() then
if msg:split(" ")[2]:lower() == "r6" then
Remote:FireServer("R6_Dummy")
end
if msg:split(" ")[2]:lower() == "r15" then
Remote:FireServer("R15_Dummy")
end
end
if msg:split(" ")[1]:lower() == Commands[6] then
for i = 2,#msg:split(" ") do
game.ReplicatedStorage.Remotes.RunCode:FireServer(
msg[i],
game.Players.LocalPlayer.Name
)
end
end
if msg:lower() == Commands[5] then
Remote:FireServer("RESET_MAP_FUNCTION")
end
end)
Everything was working PERFECTLY but for some reason now it broke. It doesn’t even print the player message. Can anyone help me?