Scripting / API
Enums & Input
Enum values used by Glorpia scripting and UserInputService.
CameraMode
| Name | Type | Description |
|---|---|---|
Enum.CameraMode.Classic | Enum.CameraMode | Normal built-in camera zoom behaviour. |
Enum.CameraMode.LockFirstPerson | Enum.CameraMode | Keeps the built-in Custom camera in first person. |
CameraType
| Name | Type | Description |
|---|---|---|
Enum.CameraType.Custom | Enum.CameraType | Default. The Core CameraScript controls the active Camera. |
Enum.CameraType.Scriptable | Enum.CameraType | Built-in camera behaviour is disabled so creator LocalScripts can control the Camera and camera input directly. |
PartShape
| Name | Type | Description |
|---|---|---|
Enum.PartShape.Block | Enum.PartShape | Rectangular part. |
Enum.PartShape.Ball | Enum.PartShape | Spherical or ellipsoid part. |
Enum.PartShape.Cylinder | Enum.PartShape | Y-axis cylinder. |
Enum.PartShape.Wedge | Enum.PartShape | Triangular-prism wedge with a sloped top face. |
Enum.PartShape.CornerWedge | Enum.PartShape | Corner wedge with two perpendicular sloped sides meeting at one raised corner. |
Font
| Name | Type | Description |
|---|---|---|
Enum.Font.Metropolis | Enum.Font | Metropolis font family and the TextLabel default. |
Enum.Font.Arima | Enum.Font | Arima font family. |
Enum.Font.Arimo | Enum.Font | Arimo font family. |
Enum.Font.Audiowide | Enum.Font | Audiowide font family. |
Enum.Font.Basic | Enum.Font | Basic font family. |
Enum.Font.Cantarell | Enum.Font | Cantarell font family. |
Enum.Font.Cinzel | Enum.Font | Cinzel font family. |
Enum.Font.ComicRelief | Enum.Font | Comic Relief font family. |
Enum.Font.Commissioner | Enum.Font | Commissioner font family. |
Enum.Font.Creepster | Enum.Font | Creepster font family. |
Enum.Font.EagleLake | Enum.Font | Eagle Lake font family. |
Enum.Font.Eater | Enum.Font | Eater font family. |
Enum.Font.Flavors | Enum.Font | Flavors font family. |
Enum.Font.FontdinerSwanky | Enum.Font | Fontdiner Swanky font family. |
Enum.Font.GrandHotel | Enum.Font | Grand Hotel font family. |
Enum.Font.HennyPenny | Enum.Font | Henny Penny font family. |
Enum.Font.IBMPlexMono | Enum.Font | IBM Plex Mono font family. |
Enum.Font.JollyLodger | Enum.Font | Jolly Lodger font family. |
Enum.Font.JotiOne | Enum.Font | Joti One font family. |
Enum.Font.Knewave | Enum.Font | Knewave font family. |
Enum.Font.PasseroOne | Enum.Font | Passero One font family. |
Enum.Font.Rowdies | Enum.Font | Rowdies font family. |
Enum.Font.RubikDistressed | Enum.Font | Rubik Distressed font family. |
Enum.Font.ShortStack | Enum.Font | Short Stack font family. |
Enum.Font.Silkscreen | Enum.Font | Silkscreen font family. |
Enum.Font.Bytesized | Enum.Font | Bytesized font family. |
Enum.Font.DynaPuff | Enum.Font | DynaPuff font family. |
Enum.Font.FiraCode | Enum.Font | Fira Code font family. |
Enum.Font.LobsterTwo | Enum.Font | Lobster Two font family. |
Enum.Font.Matemasie | Enum.Font | Matemasie font family. |
Enum.Font.Miltonian | Enum.Font | Miltonian font family. |
Enum.Font.Monoton | Enum.Font | Monoton font family. |
Enum.Font.Montserrat | Enum.Font | Montserrat font family. |
Enum.Font.Oswald | Enum.Font | Oswald font family. |
Enum.Font.PermanentMarker | Enum.Font | Permanent Marker font family. |
Enum.Font.PressStart2P | Enum.Font | Press Start 2P font family. |
Enum.Font.Rubik | Enum.Font | Rubik font family. |
Enum.Font.RubikWetPaint | Enum.Font | Rubik Wet Paint font family. |
Enum.Font.Rye | Enum.Font | Rye font family. |
Enum.Font.Tiny5 | Enum.Font | Tiny5 font family. |
Enum.Font.AmaticSC | Enum.Font | Amatic SC font family. |
Enum.Font.Bangers | Enum.Font | Bangers font family. |
Enum.Font.ComicNeue | Enum.Font | Comic Neue font family. |
Enum.Font.DenkOne | Enum.Font | Denk One font family. |
Enum.Font.Inconsolata | Enum.Font | Inconsolata font family. |
Enum.Font.IndieFlower | Enum.Font | Indie Flower font family. |
Enum.Font.JosefinSans | Enum.Font | Josefin Sans font family. |
Enum.Font.Jura | Enum.Font | Jura font family. |
Enum.Font.Kalam | Enum.Font | Kalam font family. |
Enum.Font.Merriweather | Enum.Font | Merriweather font family. |
Enum.Font.Michroma | Enum.Font | Michroma font family. |
Enum.Font.Nunito | Enum.Font | Nunito font family. |
Enum.Font.PatrickHand | Enum.Font | Patrick Hand font family. |
Enum.Font.Roboto | Enum.Font | Roboto font family. |
Enum.Font.RobotoCondensed | Enum.Font | Roboto Condensed font family. |
Enum.Font.RobotoMono | Enum.Font | Roboto Mono font family. |
Enum.Font.Sarpanch | Enum.Font | Sarpanch font family. |
Enum.Font.SourceSans3 | Enum.Font | Source Sans 3 font family. |
Enum.Font.SpecialElite | Enum.Font | Special Elite font family. |
Enum.Font.TitilliumWeb | Enum.Font | Titillium Web font family. |
Enum.Font.Ubuntu | Enum.Font | Ubuntu font family. |
FontStyle
| Name | Type | Description |
|---|---|---|
Enum.FontStyle.Thin | Enum.FontStyle | Thin style. |
Enum.FontStyle.ThinItalic | Enum.FontStyle | Thin italic style. |
Enum.FontStyle.ExtraLight | Enum.FontStyle | Extra Light style. |
Enum.FontStyle.ExtraLightItalic | Enum.FontStyle | Extra Light italic style. |
Enum.FontStyle.Light | Enum.FontStyle | Light style. |
Enum.FontStyle.LightItalic | Enum.FontStyle | Light italic style. |
Enum.FontStyle.Normal | Enum.FontStyle | Normal style and the TextLabel default. |
Enum.FontStyle.Italic | Enum.FontStyle | Italic style. |
Enum.FontStyle.Medium | Enum.FontStyle | Medium style. |
Enum.FontStyle.MediumItalic | Enum.FontStyle | Medium italic style. |
Enum.FontStyle.SemiBold | Enum.FontStyle | Semi Bold style. |
Enum.FontStyle.SemiBoldItalic | Enum.FontStyle | Semi Bold italic style. |
Enum.FontStyle.Bold | Enum.FontStyle | Bold style. |
Enum.FontStyle.BoldItalic | Enum.FontStyle | Bold italic style. |
Enum.FontStyle.ExtraBold | Enum.FontStyle | Extra Bold style. |
Enum.FontStyle.ExtraBoldItalic | Enum.FontStyle | Extra Bold italic style. |
Enum.FontStyle.Black | Enum.FontStyle | Black style. |
Enum.FontStyle.BlackItalic | Enum.FontStyle | Black italic style. |
TextTruncate
| Name | Type | Description |
|---|---|---|
Enum.TextTruncate.None | Enum.TextTruncate | Does not add truncation text. Overflow is clipped by the TextLabel bounds. |
Enum.TextTruncate.AtEnd | Enum.TextTruncate | Truncates overflowing text at the end and adds an ellipsis, preferring whole words when possible. |
Enum.TextTruncate.SplitWord | Enum.TextTruncate | Truncates overflowing text at the end and may split a word before adding an ellipsis. |
TextDirection
| Name | Type | Description |
|---|---|---|
Enum.TextDirection.Auto | Enum.TextDirection | Detects left-to-right or right-to-left direction from the text. |
Enum.TextDirection.LeftToRight | Enum.TextDirection | Forces left-to-right text flow. |
Enum.TextDirection.RightToLeft | Enum.TextDirection | Forces right-to-left text flow. |
TextXAlignment
| Name | Type | Description |
|---|---|---|
Enum.TextXAlignment.Left | Enum.TextXAlignment | Aligns text to the left edge of its GUI bounds. |
Enum.TextXAlignment.Center | Enum.TextXAlignment | Centres text horizontally. This is the default. |
Enum.TextXAlignment.Right | Enum.TextXAlignment | Aligns text to the right edge of its GUI bounds. |
TextYAlignment
| Name | Type | Description |
|---|---|---|
Enum.TextYAlignment.Top | Enum.TextYAlignment | Aligns text to the top edge of its GUI bounds. |
Enum.TextYAlignment.Center | Enum.TextYAlignment | Centres text vertically. This is the default. |
Enum.TextYAlignment.Bottom | Enum.TextYAlignment | Aligns text to the bottom edge of its GUI bounds. |
BorderMode
| Name | Type | Description |
|---|---|---|
Enum.BorderMode.Outline | Enum.BorderMode | Draws the border outside the GUI object's bounds. |
Enum.BorderMode.Middle | Enum.BorderMode | Centres the border on the GUI object's bounds. |
Enum.BorderMode.Inset | Enum.BorderMode | Draws the border inside the GUI object's bounds. |
FillDirection
| Name | Type | Description |
|---|---|---|
Enum.FillDirection.Horizontal | Enum.FillDirection | Arranges or fills items from left to right before continuing on the next row or column as applicable. |
Enum.FillDirection.Vertical | Enum.FillDirection | Arranges or fills items from top to bottom before continuing on the next column or row as applicable. |
HorizontalAlignment
| Name | Type | Description |
|---|---|---|
Enum.HorizontalAlignment.Left | Enum.HorizontalAlignment | Aligns layout content to the left side of the parent. |
Enum.HorizontalAlignment.Center | Enum.HorizontalAlignment | Centres layout content horizontally in the parent. |
Enum.HorizontalAlignment.Right | Enum.HorizontalAlignment | Aligns layout content to the right side of the parent. |
VerticalAlignment
| Name | Type | Description |
|---|---|---|
Enum.VerticalAlignment.Top | Enum.VerticalAlignment | Aligns layout content to the top of the parent. |
Enum.VerticalAlignment.Center | Enum.VerticalAlignment | Centres layout content vertically in the parent. |
Enum.VerticalAlignment.Bottom | Enum.VerticalAlignment | Aligns layout content to the bottom of the parent. |
StartCorner
| Name | Type | Description |
|---|---|---|
Enum.StartCorner.TopLeft | Enum.StartCorner | Begins UIGridLayout placement at the top-left corner. |
Enum.StartCorner.TopRight | Enum.StartCorner | Begins UIGridLayout placement at the top-right corner. |
Enum.StartCorner.BottomLeft | Enum.StartCorner | Begins UIGridLayout placement at the bottom-left corner. |
Enum.StartCorner.BottomRight | Enum.StartCorner | Begins UIGridLayout placement at the bottom-right corner. |
FollowMode
| Name | Type | Description |
|---|---|---|
Enum.FollowMode.Companion | Enum.FollowMode | Follows a Player but stops a short distance away. This is the default FollowPlayer mode. |
Enum.FollowMode.Chase | Enum.FollowMode | Continuously walks toward the center of the Player character without a companion stopping distance. |
FollowBrain
| Name | Type | Description |
|---|---|---|
Enum.FollowBrain.Dumb | Enum.FollowBrain | Uses the original direct FollowPlayer movement. This is the default FollowPlayer brain. |
Enum.FollowBrain.Smart | Enum.FollowBrain | Uses obstacle-aware following with vertical-height-aware gap jumps, safe small and large ledge drops, large-area doorway/bridge routing, wall/corner clearance, automatic obstacle jumping, nearest-ladder search and ladder climbing. |
NetworkReliability
| Name | Type | Description |
|---|---|---|
Enum.NetworkReliability.Reliable | Enum.NetworkReliability | Keeps ordered delivery using Glorpia's reliable transport. |
Enum.NetworkReliability.Unreliable | Enum.NetworkReliability | Allows older pending packets for the same remote and target to be discarded when newer traffic supersedes them. |
RemotePayload
| Name | Type | Description |
|---|---|---|
Enum.RemotePayload.Default | Enum.RemotePayload | Allows every supported RemoteEvent and RemoteFunction payload type. |
Enum.RemotePayload.Custom | Enum.RemotePayload | Enforces the remote's AllowedPayloadTypes list. |
NetworkPriority
| Name | Type | Description |
|---|---|---|
Enum.NetworkPriority.Default | Enum.NetworkPriority | Normal remote traffic priority. |
Enum.NetworkPriority.High | Enum.NetworkPriority | Highest creator-selected remote traffic priority. |
Enum.NetworkPriority.Medium | Enum.NetworkPriority | Higher priority than Default, below High. |
Enum.NetworkPriority.Low | Enum.NetworkPriority | Lowest remote traffic priority for non-urgent signals. |
BasicSound.SoundName
| Name | Type | Description |
|---|---|---|
Enum.BasicSound.BubblePop | Enum.BasicSound.SoundName | BubblePop. |
Enum.BasicSound.MonkeyParty | Enum.BasicSound.SoundName | Monkey Party. |
Enum.BasicSound.AquaFrenzy | Enum.BasicSound.SoundName | Aqua Frenzy. |
Enum.BasicSound.PartyMusic | Enum.BasicSound.SoundName | Party Music. |
Enum.BasicSound.Chiptronical | Enum.BasicSound.SoundName | Chiptronical. |
Enum.BasicSound.ZeroProject | Enum.BasicSound.SoundName | Zero Project. |
Enum.BasicSound.JingleBells | Enum.BasicSound.SoundName | Jingle Bells. |
Enum.BasicSound.SantaMagic | Enum.BasicSound.SoundName | Santa Magic. |
Enum.BasicSound.SpookyGames | Enum.BasicSound.SoundName | Spooky Games. |
Enum.BasicSound.MysticalHalloween | Enum.BasicSound.SoundName | Mystical Halloween. |
Enum.BasicSound.HalloweenSpook | Enum.BasicSound.SoundName | Halloween Spook. |
Enum.BasicSound.HolidaySpirit | Enum.BasicSound.SoundName | Holiday Spirit. |
Enum.BasicSound.MorningMood | Enum.BasicSound.SoundName | Morning Mood. |
Enum.BasicSound.GymnopedieNo1 | Enum.BasicSound.SoundName | Gymnopédie No. 1. |
Enum.BasicSound.Lacrimosa | Enum.BasicSound.SoundName | Lacrimosa. |
Enum.BasicSound.Hallelujah | Enum.BasicSound.SoundName | Hallelujah. |
Enum.BasicSound.HallOfTheMountainKing | Enum.BasicSound.SoundName | Hall of the Mountain King. |
Enum.BasicSound.TheEntertainer | Enum.BasicSound.SoundName | The Entertainer. |
Enum.BasicSound.Invincible | Enum.BasicSound.SoundName | Invincible. |
Enum.BasicSound.CurbYourEnthusiasm | Enum.BasicSound.SoundName | Curb Your Enthusiasm. |
Enum.BasicSound.EntryOfTheGladiators | Enum.BasicSound.SoundName | Entry of the Gladiators. |
Enum.BasicSound.DistractionDance | Enum.BasicSound.SoundName | Distraction Dance. |
Enum.BasicSound.YouGotJebaited | Enum.BasicSound.SoundName | You Got Jebaited. |
Luau
local sound = Instance.new("BasicSound")
sound.Sound = Enum.BasicSound.PartyMusicKeyCode
| Name | Type | Description |
|---|---|---|
Enum.KeyCode.None | Enum.KeyCode | No keyboard key. |
Enum.KeyCode.Backspace | Enum.KeyCode | Backspace keyboard key. |
Enum.KeyCode.Tab | Enum.KeyCode | Tab keyboard key. |
Enum.KeyCode.Clear | Enum.KeyCode | Clear keyboard key. |
Enum.KeyCode.Return | Enum.KeyCode | Return keyboard key. |
Enum.KeyCode.Pause | Enum.KeyCode | Pause keyboard key. |
Enum.KeyCode.Escape | Enum.KeyCode | Escape keyboard key. |
Enum.KeyCode.Space | Enum.KeyCode | Space keyboard key. |
Enum.KeyCode.QuotedDouble | Enum.KeyCode | QuotedDouble keyboard key. |
Enum.KeyCode.Hash | Enum.KeyCode | Hash keyboard key. |
Enum.KeyCode.Dollar | Enum.KeyCode | Dollar keyboard key. |
Enum.KeyCode.Percent | Enum.KeyCode | Percent keyboard key. |
Enum.KeyCode.Ampersand | Enum.KeyCode | Ampersand keyboard key. |
Enum.KeyCode.Quote | Enum.KeyCode | Quote keyboard key. |
Enum.KeyCode.LeftParenthesis | Enum.KeyCode | LeftParenthesis keyboard key. |
Enum.KeyCode.RightParenthesis | Enum.KeyCode | RightParenthesis keyboard key. |
Enum.KeyCode.Asterisk | Enum.KeyCode | Asterisk keyboard key. |
Enum.KeyCode.Plus | Enum.KeyCode | Plus keyboard key. |
Enum.KeyCode.Comma | Enum.KeyCode | Comma keyboard key. |
Enum.KeyCode.Minus | Enum.KeyCode | Minus keyboard key. |
Enum.KeyCode.Period | Enum.KeyCode | Period keyboard key. |
Enum.KeyCode.Slash | Enum.KeyCode | Slash keyboard key. |
Enum.KeyCode.Zero | Enum.KeyCode | Zero keyboard key. |
Enum.KeyCode.One | Enum.KeyCode | One keyboard key. |
Enum.KeyCode.Two | Enum.KeyCode | Two keyboard key. |
Enum.KeyCode.Three | Enum.KeyCode | Three keyboard key. |
Enum.KeyCode.Four | Enum.KeyCode | Four keyboard key. |
Enum.KeyCode.Five | Enum.KeyCode | Five keyboard key. |
Enum.KeyCode.Six | Enum.KeyCode | Six keyboard key. |
Enum.KeyCode.Seven | Enum.KeyCode | Seven keyboard key. |
Enum.KeyCode.Eight | Enum.KeyCode | Eight keyboard key. |
Enum.KeyCode.Nine | Enum.KeyCode | Nine keyboard key. |
Enum.KeyCode.Colon | Enum.KeyCode | Colon keyboard key. |
Enum.KeyCode.Semicolon | Enum.KeyCode | Semicolon keyboard key. |
Enum.KeyCode.LessThan | Enum.KeyCode | LessThan keyboard key. |
Enum.KeyCode.Equals | Enum.KeyCode | Equals keyboard key. |
Enum.KeyCode.GreaterThan | Enum.KeyCode | GreaterThan keyboard key. |
Enum.KeyCode.Question | Enum.KeyCode | Question keyboard key. |
Enum.KeyCode.At | Enum.KeyCode | At keyboard key. |
Enum.KeyCode.LeftBracket | Enum.KeyCode | LeftBracket keyboard key. |
Enum.KeyCode.BackSlash | Enum.KeyCode | BackSlash keyboard key. |
Enum.KeyCode.RightBracket | Enum.KeyCode | RightBracket keyboard key. |
Enum.KeyCode.Caret | Enum.KeyCode | Caret keyboard key. |
Enum.KeyCode.Underscore | Enum.KeyCode | Underscore keyboard key. |
Enum.KeyCode.Backquote | Enum.KeyCode | Backquote keyboard key. |
Enum.KeyCode.A | Enum.KeyCode | A keyboard key. |
Enum.KeyCode.B | Enum.KeyCode | B keyboard key. |
Enum.KeyCode.C | Enum.KeyCode | C keyboard key. |
Enum.KeyCode.D | Enum.KeyCode | D keyboard key. |
Enum.KeyCode.E | Enum.KeyCode | E keyboard key. |
Enum.KeyCode.F | Enum.KeyCode | F keyboard key. |
Enum.KeyCode.G | Enum.KeyCode | G keyboard key. |
Enum.KeyCode.H | Enum.KeyCode | H keyboard key. |
Enum.KeyCode.I | Enum.KeyCode | I keyboard key. |
Enum.KeyCode.J | Enum.KeyCode | J keyboard key. |
Enum.KeyCode.K | Enum.KeyCode | K keyboard key. |
Enum.KeyCode.L | Enum.KeyCode | L keyboard key. |
Enum.KeyCode.M | Enum.KeyCode | M keyboard key. |
Enum.KeyCode.N | Enum.KeyCode | N keyboard key. |
Enum.KeyCode.O | Enum.KeyCode | O keyboard key. |
Enum.KeyCode.P | Enum.KeyCode | P keyboard key. |
Enum.KeyCode.Q | Enum.KeyCode | Q keyboard key. |
Enum.KeyCode.R | Enum.KeyCode | R keyboard key. |
Enum.KeyCode.S | Enum.KeyCode | S keyboard key. |
Enum.KeyCode.T | Enum.KeyCode | T keyboard key. |
Enum.KeyCode.U | Enum.KeyCode | U keyboard key. |
Enum.KeyCode.V | Enum.KeyCode | V keyboard key. |
Enum.KeyCode.W | Enum.KeyCode | W keyboard key. |
Enum.KeyCode.X | Enum.KeyCode | X keyboard key. |
Enum.KeyCode.Y | Enum.KeyCode | Y keyboard key. |
Enum.KeyCode.Z | Enum.KeyCode | Z keyboard key. |
Enum.KeyCode.LeftCurly | Enum.KeyCode | LeftCurly keyboard key. |
Enum.KeyCode.Pipe | Enum.KeyCode | Pipe keyboard key. |
Enum.KeyCode.RightCurly | Enum.KeyCode | RightCurly keyboard key. |
Enum.KeyCode.Tilde | Enum.KeyCode | Tilde keyboard key. |
Enum.KeyCode.Delete | Enum.KeyCode | Delete keyboard key. |
Enum.KeyCode.KeypadZero | Enum.KeyCode | KeypadZero keyboard key. |
Enum.KeyCode.KeypadOne | Enum.KeyCode | KeypadOne keyboard key. |
Enum.KeyCode.KeypadTwo | Enum.KeyCode | KeypadTwo keyboard key. |
Enum.KeyCode.KeypadThree | Enum.KeyCode | KeypadThree keyboard key. |
Enum.KeyCode.KeypadFour | Enum.KeyCode | KeypadFour keyboard key. |
Enum.KeyCode.KeypadFive | Enum.KeyCode | KeypadFive keyboard key. |
Enum.KeyCode.KeypadSix | Enum.KeyCode | KeypadSix keyboard key. |
Enum.KeyCode.KeypadSeven | Enum.KeyCode | KeypadSeven keyboard key. |
Enum.KeyCode.KeypadEight | Enum.KeyCode | KeypadEight keyboard key. |
Enum.KeyCode.KeypadNine | Enum.KeyCode | KeypadNine keyboard key. |
Enum.KeyCode.KeypadPeriod | Enum.KeyCode | KeypadPeriod keyboard key. |
Enum.KeyCode.KeypadDivide | Enum.KeyCode | KeypadDivide keyboard key. |
Enum.KeyCode.KeypadMultiply | Enum.KeyCode | KeypadMultiply keyboard key. |
Enum.KeyCode.KeypadMinus | Enum.KeyCode | KeypadMinus keyboard key. |
Enum.KeyCode.KeypadPlus | Enum.KeyCode | KeypadPlus keyboard key. |
Enum.KeyCode.KeypadEnter | Enum.KeyCode | KeypadEnter keyboard key. |
Enum.KeyCode.KeypadEquals | Enum.KeyCode | KeypadEquals keyboard key. |
Enum.KeyCode.Up | Enum.KeyCode | Up keyboard key. |
Enum.KeyCode.Down | Enum.KeyCode | Down keyboard key. |
Enum.KeyCode.Right | Enum.KeyCode | Right keyboard key. |
Enum.KeyCode.Left | Enum.KeyCode | Left keyboard key. |
Enum.KeyCode.Insert | Enum.KeyCode | Insert keyboard key. |
Enum.KeyCode.Home | Enum.KeyCode | Home keyboard key. |
Enum.KeyCode.End | Enum.KeyCode | End keyboard key. |
Enum.KeyCode.PageUp | Enum.KeyCode | PageUp keyboard key. |
Enum.KeyCode.PageDown | Enum.KeyCode | PageDown keyboard key. |
Enum.KeyCode.F1 | Enum.KeyCode | F1 keyboard key. |
Enum.KeyCode.F2 | Enum.KeyCode | F2 keyboard key. |
Enum.KeyCode.F3 | Enum.KeyCode | F3 keyboard key. |
Enum.KeyCode.F4 | Enum.KeyCode | F4 keyboard key. |
Enum.KeyCode.F5 | Enum.KeyCode | F5 keyboard key. |
Enum.KeyCode.F6 | Enum.KeyCode | F6 keyboard key. |
Enum.KeyCode.F7 | Enum.KeyCode | F7 keyboard key. |
Enum.KeyCode.F8 | Enum.KeyCode | F8 keyboard key. |
Enum.KeyCode.F9 | Enum.KeyCode | F9 keyboard key. |
Enum.KeyCode.F10 | Enum.KeyCode | F10 keyboard key. |
Enum.KeyCode.F11 | Enum.KeyCode | F11 keyboard key. |
Enum.KeyCode.F12 | Enum.KeyCode | F12 keyboard key. |
Enum.KeyCode.F13 | Enum.KeyCode | F13 keyboard key. |
Enum.KeyCode.F14 | Enum.KeyCode | F14 keyboard key. |
Enum.KeyCode.F15 | Enum.KeyCode | F15 keyboard key. |
Enum.KeyCode.NumLock | Enum.KeyCode | NumLock keyboard key. |
Enum.KeyCode.CapsLock | Enum.KeyCode | CapsLock keyboard key. |
Enum.KeyCode.ScrollLock | Enum.KeyCode | ScrollLock keyboard key. |
Enum.KeyCode.RightShift | Enum.KeyCode | RightShift keyboard key. |
Enum.KeyCode.LeftShift | Enum.KeyCode | LeftShift keyboard key. |
Enum.KeyCode.RightControl | Enum.KeyCode | RightControl keyboard key. |
Enum.KeyCode.LeftControl | Enum.KeyCode | LeftControl keyboard key. |
Enum.KeyCode.RightAlt | Enum.KeyCode | RightAlt keyboard key. |
Enum.KeyCode.LeftAlt | Enum.KeyCode | LeftAlt keyboard key. |
Enum.KeyCode.RightMeta | Enum.KeyCode | RightMeta keyboard key. |
Enum.KeyCode.LeftMeta | Enum.KeyCode | LeftMeta keyboard key. |
Enum.KeyCode.LeftSuper | Enum.KeyCode | LeftSuper keyboard key. |
Enum.KeyCode.RightSuper | Enum.KeyCode | RightSuper keyboard key. |
Enum.KeyCode.Mode | Enum.KeyCode | Mode keyboard key. |
Enum.KeyCode.Compose | Enum.KeyCode | Compose keyboard key. |
Enum.KeyCode.Help | Enum.KeyCode | Help keyboard key. |
Enum.KeyCode.Print | Enum.KeyCode | Print keyboard key. |
Enum.KeyCode.SysReq | Enum.KeyCode | SysReq keyboard key. |
Enum.KeyCode.Break | Enum.KeyCode | Break keyboard key. |
Enum.KeyCode.Menu | Enum.KeyCode | Menu keyboard key. |
Enum.KeyCode.Power | Enum.KeyCode | Power keyboard key. |
Enum.KeyCode.Euro | Enum.KeyCode | Euro keyboard key. |
Enum.KeyCode.Undo | Enum.KeyCode | Undo keyboard key. |
UserInputType
| Name | Type | Description |
|---|---|---|
Enum.UserInputType.Keyboard | Enum.UserInputType | Keyboard input. |
Enum.UserInputType.MouseButton1 | Enum.UserInputType | Primary mouse button. |
Enum.UserInputType.MouseButton2 | Enum.UserInputType | Secondary mouse button. |
Enum.UserInputType.MouseButton3 | Enum.UserInputType | Middle mouse button. |
Enum.UserInputType.MouseMovement | Enum.UserInputType | Mouse movement. |
Enum.UserInputType.MouseWheel | Enum.UserInputType | Mouse wheel input. |
UserInputState
| Name | Type | Description |
|---|---|---|
Enum.UserInputState.Begin | Enum.UserInputState | Input began. |
Enum.UserInputState.Change | Enum.UserInputState | Input changed. |
Enum.UserInputState.End | Enum.UserInputState | Input ended. |
MouseBehavior
| Name | Type | Description |
|---|---|---|
Enum.MouseBehavior.Default | Enum.MouseBehavior | Normal cursor behaviour. |
Enum.MouseBehavior.LockCenter | Enum.MouseBehavior | Locks the cursor to the centre. |
Enum.MouseBehavior.LockCurrentPosition | Enum.MouseBehavior | Locks the cursor at its current position. |
EasingStyle
| Name | Type | Description |
|---|---|---|
Enum.EasingStyle.Linear | Enum.EasingStyle | Linear interpolation. |
Enum.EasingStyle.Quad | Enum.EasingStyle | Quadratic easing. |
Enum.EasingStyle.Cubic | Enum.EasingStyle | Cubic easing. |
Enum.EasingStyle.Quart | Enum.EasingStyle | Quartic easing. |
Enum.EasingStyle.Sine | Enum.EasingStyle | Sinusoidal easing. |
Enum.EasingStyle.Back | Enum.EasingStyle | Overshooting back easing. |
Enum.EasingStyle.Bounce | Enum.EasingStyle | Bouncing easing. |
EasingDirection
| Name | Type | Description |
|---|---|---|
Enum.EasingDirection.In | Enum.EasingDirection | Ease at the beginning. |
Enum.EasingDirection.Out | Enum.EasingDirection | Ease at the end. |
Enum.EasingDirection.InOut | Enum.EasingDirection | Ease at both ends. |
PlaybackState
| Name | Type | Description |
|---|---|---|
Enum.PlaybackState.Begin | Enum.PlaybackState | Tween has not started. |
Enum.PlaybackState.Delayed | Enum.PlaybackState | Tween is waiting for DelayTime. |
Enum.PlaybackState.Playing | Enum.PlaybackState | Tween is actively updating. |
Enum.PlaybackState.Paused | Enum.PlaybackState | Tween is paused. |
Enum.PlaybackState.Completed | Enum.PlaybackState | Tween reached its final state. |
Enum.PlaybackState.Cancelled | Enum.PlaybackState | Tween was cancelled or could not update a goal property. |
UserInputService
| Name | Type | Description |
|---|---|---|
InputBegan | signal | Fires when a supported input begins. |
InputChanged | signal | Fires for changing input such as mouse movement or wheel. |
InputEnded | signal | Fires when a supported input ends. |
MouseBehavior | Enum.MouseBehavior | Read/write cursor behaviour. |
IsKeyDown(key) | method | Checks a supported key enum. |
GetMouseDelta() | method | Returns a Vector2 mouse delta. |
IsMouseButtonPressed(type) | method | Checks MouseButton1, MouseButton2 or MouseButton3. |
Luau
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.Space then
print("Space pressed")
end
end)