Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local testing = false
- local lobby = 4
- local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
- local testingLobby = 1
- local function notifyUser(title, text)
- OrionLib:MakeNotification({
- Name = title,
- Content = text,
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- end
- if game.PlaceId ~= 6516141723 then
- notifyUser("Unavailable!", "Please run in the DOORS lobby!")
- end
- notifyUser("Welcome!", "Welcome to DOORS! Use /lobby [playerAmount] to join a lobby.")
- local function chat(msg)
- game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(msg, "All")
- end
- local elevators = game.Workspace.Lobby.LobbyElevators
- local function getElevator()
- for i, elevator in pairs(elevators:GetChildren()) do
- if elevator.Name == "GameElevator" then
- if elevator.DoorHitbox.BillboardGui.Title.Text == "0 / " .. lobby then
- return elevator
- else
- print("title text is " .. elevator.DoorHitbox.BillboardGui.Title.Text)
- end
- end
- end
- return nil
- end
- local player = game.Players.LocalPlayer
- player.Chatted:Connect(function(msg)
- local args = string.split(msg, " ")
- if args[1] == "/lobby" then
- if args[2] then
- lobby = tonumber(args[2])
- wait()
- local elev = getElevator()
- if elev then
- player.Character:MoveTo(elev.DoorHitbox.Position)
- notifyUser("Success!", "Joined a 0/" .. lobby .. " lobby!")
- chat("Welcome to DOORS! Lunar AI has joined a 0/" .. lobby .. "!")
- else
- notifyUser("Failed!", "Could not find an empty elevator!")
- end
- else
- notifyUser("Error", "/join requires 1 arguement! (LobbyNumber <numbervalue>) Example: /join 4")
- end
- end
- end)
- OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement