This is my script, and nothing pops up about an error in output either
door = game.Workspace.LobbyDoor
local player = game.Players:FindFirstChild("Humanoid")
End = game.Workspace.EndLob
function test(name)
if player.Name == "koolkid8099, Player" then
player:connect(onChatted)
end
end
function onChatted(msg, recipient, speaker)
local source = string.lower(speaker.Name)
msg = string.lower(msg)
if (msg == "open/lobby") then
door.CanCollide = false
door.BodyPosition.position = End.Position
wait(2)
door.CanCollide = true
end
end
function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
end
game.Players.ChildAdded:connect(onPlayerEntered)

2 comments
Fix your code format, please.
ogm git gud nub1111