new switch statement for Enums like Rust

This commit is contained in:
2024-03-12 22:32:44 -04:00
parent 6edbb72e57
commit 1104964fd4
5 changed files with 151 additions and 49 deletions

View 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