Если вы сделаете отступ в коде более последовательно, вам будет легче увидеть, где синтаксическая ошибка:
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
print("Connected")
if msg == "Console on" then
console = Instance.new("Folder",workspace)
console.name = "Console"
print("Console Made")
elseif msg == "Console off" then
print("Console Destroyed")
console:Destroy()
end
end)
Еще яснее:
game.Players.PlayerAdded:Connect(
function(plr)
plr.Chatted:Connect(
function(msg)
print("Connected")
if msg == "Console on" then
console = Instance.new("Folder",workspace)
console.name = "Console"
print("Console Made")
elseif msg == "Console off" then
print("Console Destroyed")
console:Destroy()
end
end)
Вам нужно добавить еще end)
в самом конце, чтобы закрыть game.Players.PlayerAdded:Connect(function(plr)
:
game.Players.PlayerAdded:Connect(
function(plr)
plr.Chatted:Connect(
function(msg)
print("Connected")
if msg == "Console on" then
console = Instance.new("Folder",workspace)
console.name = "Console"
print("Console Made")
elseif msg == "Console off" then
print("Console Destroyed")
console:Destroy()
end
end)
end)