mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2026-02-03 21:26:49 +00:00
new switch statement for Enums like Rust
This commit is contained in:
12
src/server/main/Elevators/Enums.lua
Normal file
12
src/server/main/Elevators/Enums.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
local RS: ReplicatedStorage = game:GetService("ReplicatedStorage")
|
||||
local Enum = require(RS:WaitForChild("Enum"))
|
||||
|
||||
local Enums = {}
|
||||
|
||||
Enums.ButtonsEnum = Enum.Create("Buttons", {
|
||||
Car = "CarButton",
|
||||
Landing = "LandingButton",
|
||||
Special = "SpecialButton",
|
||||
})
|
||||
|
||||
return Enums
|
||||
Reference in New Issue
Block a user