repo
stringclasses
341 values
file_path
stringlengths
29
173
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.66M
tokens
int64
2
598k
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/Components/init.luau
luau
.luau
local STORY_EXTENSION = ".story" local Components = { CategoriesSidebar = require(script.CategoriesSidebar), CategoryButton = require(script.CategoryButton), CustomButton = require(script.CustomButton), EmoteButton = require(script.EmoteButton), EmoteCategoriesSidebar = require(script.EmoteCategoriesSidebar), Em...
326
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/OnyxUITheme.luau
luau
.luau
local Rorooms = script.Parent.Parent.Parent.Parent local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = require(Rorooms.Parent.Fusion) local ColorUtils = require(Rorooms.Parent.ColorUtils) local Util = OnyxUI.Util local Scope = Fusion.scoped(Fusion) return { Colors = { Primary = { Main = Util.Colors.Wh...
668
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/ReplacementTheme.luau
luau
.luau
local Rorooms = script.Parent.Parent.Parent.Parent local OnyxUI = require(Rorooms.Parent.OnyxUI) local Util = OnyxUI.Util return { Colors = { Primary = { Main = Util.Colors.Violet["400"], }, Secondary = { Main = Util.Colors.White, }, Accent = { Main = Util.Colors.White, }, Neutral = { Main...
417
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/RoRooms.storybook.luau
luau
.luau
return { name = "Rorooms", storyRoots = { script.Parent, }, }
23
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/ScreenGuis/EmotesMenu.luau
luau
.luau
local Rorooms = script.Parent.Parent.Parent.Parent.Parent local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = require(Rorooms.Parent.Fusion) local States = require(Rorooms.SourceCode.Client.UI.States) local Config = require(Rorooms.Config).Config local Components = require(Rorooms.SourceCode.Client.UI.Componen...
747
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/ScreenGuis/FriendsMenu.luau
luau
.luau
local Players = game:GetService("Players") local RunService = game:GetService("RunService") local SocialService = game:GetService("SocialService") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = require(Rorooms.Parent.Fusion) local States = require...
815
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/ScreenGuis/ItemsMenu.luau
luau
.luau
local Rorooms = script.Parent.Parent.Parent.Parent.Parent local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = require(Rorooms.Parent.Fusion) local States = require(Rorooms.SourceCode.Client.UI.States) local Config = require(Rorooms.Config).Config local Components = require(Rorooms.SourceCode.Client.UI.Componen...
789
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/ScreenGuis/LoadingScreen.luau
luau
.luau
local Rorooms = script.Parent.Parent.Parent.Parent.Parent local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = require(Rorooms.Parent.Fusion) local Components = require(Rorooms.SourceCode.Client.UI.Components) local States = require(Rorooms.SourceCode.Client.UI.States) local Children = Fusion.Children export ...
704
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/ScreenGuis/ProfileMenu.luau
luau
.luau
local Players = game:GetService("Players") local RunService = game:GetService("RunService") local SocialService = game:GetService("SocialService") local StarterGui = game:GetService("StarterGui") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = requ...
4,687
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/ScreenGuis/PromptHUD.luau
luau
.luau
local Rorooms = script.Parent.Parent.Parent.Parent.Parent local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = require(Rorooms.Parent.Fusion) local States = require(Rorooms.SourceCode.Client.UI.States) local Prompts = require(Rorooms.SourceCode.Client.UI.States.Prompts) local Components = require(Rorooms.Source...
1,048
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/ScreenGuis/SettingsMenu.luau
luau
.luau
local MarketplaceService = game:GetService("MarketplaceService") local StarterGui = game:GetService("StarterGui") local Players = game:GetService("Players") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = require(Rorooms.Parent.Fusion) local States...
938
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/ScreenGuis/TopbarHUD.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = require(Rorooms.Parent.Fusion) local States = require(Rorooms.SourceCode.Client.UI.States) local Components = require(Rorooms.SourceCode.Cl...
1,433
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/ScreenGuis/WorldPageMenu.luau
luau
.luau
local MarketplaceService = game:GetService("MarketplaceService") local RunService = game:GetService("RunService") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local Future = require(script.Parent.Parent.Parent.Parent.Parent.Parent.Future) local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = requir...
1,415
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/ScreenGuis/WorldsMenu.luau
luau
.luau
local RunService = game:GetService("RunService") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = require(Rorooms.Parent.Fusion) local States = require(Rorooms.SourceCode.Client.UI.States) local Worlds = require(Rorooms.SourceCode.Client.UI.States.Wo...
1,422
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/CoreGui.luau
luau
.luau
local GuiService = game:GetService("GuiService") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local Fusion = require(Rorooms.Parent.Fusion) local States = require(script.Parent) local Peek = Fusion.peek local CoreGui = { Scope = Fusion.scoped(Fusion), } CoreGui.IsUnibarOpen = CoreGui.Scope:Computed(fun...
410
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/Profiles.luau
luau
.luau
local RunService = game:GetService("RunService") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local States = require(script.Parent) local Future = require(Rorooms.Parent.Future) local Fusion = require(Rorooms.Parent.Fusion) local Types = require(Rorooms.SourceCode.Shared.Types) local ProfilesController = ...
638
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/Prompts.luau
luau
.luau
local Rorooms = script.Parent.Parent.Parent.Parent.Parent local ReconcileTable = require(Rorooms.SourceCode.Shared.ExtPackages.ReconcileTable) local States = require(script.Parent) local Fusion = require(Rorooms.Parent.Fusion) local Peek = Fusion.peek type Prompt = { Title: string, Text: string, Buttons: { [numb...
305
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/RemoteProperties.luau
luau
.luau
local Rorooms = script.Parent.Parent.Parent.Parent.Parent local States = require(script.Parent) local Knit = require(Rorooms.Parent.Knit) local RemoteProperties = {} function RemoteProperties:Start() local ItemsController = require(Rorooms.SourceCode.Client.Items.ItemsController) ItemsController.EquippedItemsUpdat...
172
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/ScreenSize.luau
luau
.luau
local Workspace = game:GetService("Workspace") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local Fusion = require(Rorooms.Parent.Fusion) local States = require(script.Parent) local Out = Fusion.Out local ScreenSize = { Scope = Fusion.scoped(Fusion), } function ScreenSize:Start() self.Scope:Hydrate(W...
103
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/Services.luau
luau
.luau
local Rorooms = script.Parent.Parent.Parent.Parent.Parent local Knit = require(Rorooms.Parent.Knit) local States = require(script.Parent) type KnitService = typeof(Knit.GetService) local Services = {} function Services:Start() Knit.OnStart():andThen(function() for ServiceName, _ in pairs(States.Services) do St...
101
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/Topbar.luau
luau
.luau
local Players = game:GetService("Players") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local States = require(script.Parent) local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = require(Rorooms.Parent.Fusion) local Assets = require(Rorooms.SourceCode.Shared.Assets) local Peek = Fusion.peek local...
642
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/Worlds.luau
luau
.luau
local Rorooms = script.Parent.Parent.Parent.Parent.Parent local Fusion = require(Rorooms.Parent.Fusion) local States = require(script.Parent) local Knit = require(Rorooms.Parent.Knit) local Peek = Fusion.peek local ROW_SIZE = 3 local RANDOM_WORLD_BASIS = ROW_SIZE * 3 local DEFAULT_WORLD_COUNT = 10 * ROW_SIZE local T...
1,444
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/init.luau
luau
.luau
local Rorooms = script.Parent.Parent.Parent.Parent local Fusion = require(Rorooms.Parent.Fusion) local Loader = require(Rorooms.Parent.Loader) local function UnloadedService(): { [any]: any } return {} end local Scope = Fusion.scoped(Fusion) local States = { Services = { ProfilesService = UnloadedService(), Wo...
712
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/UIController.luau
luau
.luau
local Players = game:GetService("Players") local Rorooms = script.Parent.Parent.Parent.Parent local Fusion = require(Rorooms.Parent.Fusion) local States = require(Rorooms.SourceCode.Client.UI.States) local OnyxUI = require(Rorooms.Parent.OnyxUI) local OnyxUITheme = require(script.Parent.OnyxUITheme) local Config = req...
545
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/Updates/UpdatesController.luau
luau
.luau
local RunService = game:GetService("RunService") local Rorooms = script.Parent.Parent.Parent.Parent local Fusion = require(Rorooms.Parent.Fusion) local States = require(Rorooms.SourceCode.Client.UI.States) local Prompts = require(Rorooms.SourceCode.Client.UI.States.Prompts) local Peek = Fusion.peek local UpdatesContr...
267
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/Worlds/WorldsController.luau
luau
.luau
local MarketplaceService = game:GetService("MarketplaceService") local TeleportService = game:GetService("TeleportService") local Rorooms = script.Parent.Parent.Parent.Parent local Knit = require(Rorooms.Parent.Knit) local Topbar = require(Rorooms.SourceCode.Client.UI.States.Topbar) local UIController = require(Roroom...
783
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Components/ComponentsService.luau
luau
.luau
local ComponentsService = { Name = script.Name, } function ComponentsService:KnitStart() for _, Module in ipairs(script.Parent:GetChildren()) do if Module:IsA("ModuleScript") and Module ~= script then require(Module) end end end return ComponentsService
61
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Components/LockedZoneComponent.luau
luau
.luau
local Rorooms = script.Parent.Parent.Parent.Parent local Component = require(Rorooms.Parent.Component) local Zone = require(Rorooms.Parent.Zone) local Fusion = require(Rorooms.Parent.Fusion) local AttributeBind = require(Rorooms.SourceCode.Shared.ExtPackages.AttributeBind) local Trove = require(Rorooms.Parent.Trove) lo...
467
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Components/VariantCyclerComponent.luau
luau
.luau
local Rorooms = script.Parent.Parent.Parent.Parent local Component = require(Rorooms.Parent.Component) local VariantCyclerComponent = Component.new { Tag = `RR_{string.gsub(script.Name, "Component$", "")}`, Variants = {}, } function VariantCyclerComponent:CycleVariant() local ActiveVariant = self.Instance:GetAttr...
633
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Defaults/CharacterDefaultsService.luau
luau
.luau
local CollectionService = game:GetService("CollectionService") local Players = game:GetService("Players") local CharacterDefaultsService = { Name = "CharacterDefaultsService", } function CharacterDefaultsService:KnitStart() Players.PlayerAdded:Connect(function(Player) Player.CharacterAdded:Connect(function(Char) ...
85
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Emotes/EmotesService.luau
luau
.luau
local MarketplaceService = game:GetService("MarketplaceService") local Rorooms = script.Parent.Parent.Parent.Parent local PlayerCharacterComponent = require(Rorooms.SourceCode.Server.Components.PlayerCharacterComponent) local PlayerDataStoreService = require(Rorooms.SourceCode.Server.PlayerDataStore.PlayerDataStoreServ...
638
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Items/ItemsService.luau
luau
.luau
local MarketplaceService = game:GetService("MarketplaceService") local Rorooms = script.Parent.Parent.Parent.Parent local PlayerDataStoreService = require(Rorooms.SourceCode.Server.PlayerDataStore.PlayerDataStoreService) local t = require(Rorooms.Parent.t) local Config = require(Rorooms.Config).Config local Future = re...
1,089
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Music/MusicService.luau
luau
.luau
local SoundService = game:GetService("SoundService") local Rorooms = script.Parent.Parent.Parent.Parent local Knit = require(Rorooms.Parent.Knit) local Config = require(Rorooms.Config).Config local MusicService = { Name = "MusicService", Client = { CurrentSong = Knit.CreateProperty(), }, CurrentIndex = 0, Son...
352
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/PlayerDataStore/DataTemplate.luau
luau
.luau
export type PlayerData = { Level: number, XP: number, MinutesSpent: number, Profile: { Nickname: string, Bio: string, Role: string?, }, } local Template: PlayerData = { Level = 1, XP = 0, MinutesSpent = 0, Profile = { Nickname = "", Bio = "", Role = nil, }, } return Template
101
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/PlayerDataStore/LevelingService.luau
luau
.luau
local Players = game:GetService("Players") local Rorooms = script.Parent.Parent.Parent.Parent local PlayerDataStoreService = require(script.Parent.PlayerDataStoreService) local XPToLevelUp = require(Rorooms.SourceCode.Shared.XPToLevelUp) local Knit = require(Rorooms.Parent.Knit) local DataTemplate = require(Rorooms.Sou...
1,020
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/PlayerDataStore/PlayerDataStoreService.luau
luau
.luau
local Players = game:GetService("Players") local Rorooms = script.Parent.Parent.Parent.Parent local ProfileService = require(Rorooms.Parent.ProfileService) local Signal = require(Rorooms.Parent.Signal) local DataTemplate = require(script.Parent.DataTemplate) local DeepCopy = require(Rorooms.SourceCode.Shared.ExtPackag...
622
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/PlayerDataStore/PlayerStatsService.luau
luau
.luau
local PlayerStatsService = { Name = script.Name, } return PlayerStatsService
17
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Profiles/ProfilesService.luau
luau
.luau
local MarketplaceService = game:GetService("MarketplaceService") local Players = game:GetService("Players") local UserService = game:GetService("UserService") local Rorooms = script.Parent.Parent.Parent.Parent local Knit = require(Rorooms.Parent.Knit) local FilterString = require(Rorooms.SourceCode.Shared.ExtPackages....
1,517
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Worlds/RandomWorldsService.luau
luau
.luau
local Rorooms = script.Parent.Parent.Parent.Parent local WorldRegistryService = require(script.Parent.WorldRegistryService) local ShuffleArray = require(Rorooms.SourceCode.Shared.ExtPackages.ShuffleArray) local Knit = require(Rorooms.Parent.Knit) local t = require(Rorooms.Parent.t) local GetEntriesFromArray = require(R...
385
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Worlds/TopWorldsService.luau
luau
.luau
local DataStoreService = game:GetService("DataStoreService") local Players = game:GetService("Players") local Rorooms = script.Parent.Parent.Parent.Parent local Future = require(Rorooms.Parent.Future) local WorldRegistryService = require(Rorooms.SourceCode.Server.Worlds.WorldRegistryService) local Knit = require(Roroo...
1,336
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Worlds/WorldsService.luau
luau
.luau
local RunService = game:GetService("RunService") local TeleportService = game:GetService("TeleportService") local Rorooms = script.Parent.Parent.Parent.Parent local t = require(Rorooms.Parent.t) local WorldsService = { Name = script.Name, Client = {}, } function WorldsService.Client:TeleportToWorld(Player: Player,...
180
rorooms/rorooms
rorooms-rorooms-3d06941/src/Shared/Assets/Icons.luau
luau
.luau
local Icons = { UserBadges = { Level = "rbxassetid://113726942412490", Rorooms = "rbxassetid://74362866882865", RoroomsPlus = "rbxassetid://98919849651582", ServerOwner = "rbxassetid://81805631752548", WorldBuilder = "rbxassetid://72011443469820", }, Topbar = { Settings = { Outlined = "rbxassetid://17...
648
rorooms/rorooms
rorooms-rorooms-3d06941/src/Shared/Assets/Images.luau
luau
.luau
return { RoroomsLogo = "rbxassetid://124390954251956", RoroomsGlyph = "rbxassetid://97237065883195", }
39
rorooms/rorooms
rorooms-rorooms-3d06941/src/Shared/FindFeatureFromModule.luau
luau
.luau
local FEATURE_MODULES_MAP = { Profiles = { "ProfilesService", "ProfilesController" }, Items = { "ItemsService", "ItemsController" }, Emotes = { "EmotesService", "EmotesController" }, Worlds = { "WorldsService", "WorldRegistryService", "TopWorldsService", "RandomWorldsService", "WorldsController", }, Mus...
179
rorooms/rorooms
rorooms-rorooms-3d06941/src/Shared/Types.luau
luau
.luau
export type Profile = { Nickname: string?, DisplayName: string, Username: string, Bio: string?, Role: string?, Level: number, } return nil
39
rorooms/rorooms
rorooms-rorooms-3d06941/src/Shared/XPToGetToLevel.luau
luau
.luau
local XPToLevelUp = require(script.Parent.XPToLevelUp) return function(GoalLevel: number) local Level = 0 local TotalXP = 0 for _ = 0, GoalLevel do TotalXP += XPToLevelUp(Level) Level += 1 end return TotalXP end
75
rorooms/rorooms
rorooms-rorooms-3d06941/src/Shared/XPToLevelUp.luau
luau
.luau
local Rorooms = script.Parent.Parent.Parent local Config = require(Rorooms.Config).Config local CURVE_MULTIPLIER = 0.85 return function(Level: number) Level = math.floor(Level) local Result = Config.Systems.Leveling.BaseLevelUpXP * (CURVE_MULTIPLIER * ((Level % 5) + (Level / 5))) if Result > 0 then return Result...
108
rorooms/rorooms
rorooms-rorooms-3d06941/src/Storage/Placeholder.luau
luau
.luau
-- this is just so git actually commits the empty folder
11
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputConnections.luau
luau
.luau
-- Types type Properties = { prompt: ProximityPrompt, ButtonHeldDown: any, CurrentBarSize: any, CurrentFrameScaleFactor: any, PromptTransparency: any, InputFrameScaleFactor: any, } -- Services local RunService = game:GetService("RunService") local SoundService = game:GetService("SoundService") ...
731
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputLabel/Gamepad/GamepadButtonImage.luau
luau
.luau
return { [Enum.KeyCode.ButtonX] = "rbxasset://textures/ui/Controls/xboxX.png", [Enum.KeyCode.ButtonY] = "rbxasset://textures/ui/Controls/xboxY.png", [Enum.KeyCode.ButtonA] = "rbxasset://textures/ui/Controls/xboxA.png", [Enum.KeyCode.ButtonB] = "rbxasset://textures/ui/Controls/xboxB.png", [Enum.KeyCode.DPadLeft] = ...
417
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputLabel/Gamepad/init.luau
luau
.luau
-- Constants local GAMEPAD_BUTTON_IMAGE = require(script.GamepadButtonImage) return function(Scope : any, prompt, Config : {}) if not GAMEPAD_BUTTON_IMAGE[prompt.GamepadKeyCode] then return end return { Scope:New("ImageLabel", { Name = "ButtonImage", AnchorPoint = V...
160
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputLabel/Keyboard/KeyCodeToTextMapping.luau
luau
.luau
return { [Enum.KeyCode.LeftControl] = "Ctrl", [Enum.KeyCode.RightControl] = "Ctrl", [Enum.KeyCode.LeftAlt] = "Alt", [Enum.KeyCode.RightAlt] = "Alt", [Enum.KeyCode.F1] = "F1", [Enum.KeyCode.F2] = "F2", [Enum.KeyCode.F3] = "F3", [Enum.KeyCode.F4] = "F4", [Enum.KeyCode.F5] = "F5", [Enum.KeyCode.F6] = "F6", [Enu...
191
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputLabel/Keyboard/KeyboardButtonIconMapping.luau
luau
.luau
return { ["'"] = "rbxasset://textures/ui/Controls/apostrophe.png", [","] = "rbxasset://textures/ui/Controls/comma.png", ["`"] = "rbxasset://textures/ui/Controls/graveaccent.png", ["."] = "rbxasset://textures/ui/Controls/period.png", [" "] = "rbxasset://textures/ui/Controls/spacebar.png", }
94
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputLabel/Keyboard/KeyboardButtonImage.luau
luau
.luau
return { [Enum.KeyCode.Backspace] = "rbxasset://textures/ui/Controls/backspace.png", [Enum.KeyCode.Return] = "rbxasset://textures/ui/Controls/return.png", [Enum.KeyCode.LeftShift] = "rbxasset://textures/ui/Controls/shift.png", [Enum.KeyCode.RightShift] = "rbxasset://textures/ui/Controls/shift.png", [Enum.KeyCode.T...
106
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputLabel/Keyboard/init.luau
luau
.luau
-- Constants local KEYBOARD_BUTTON_IMAGE = require(script.KeyboardButtonImage) local KEYBOARD_BUTTON_ICON_MAPPING = require(script.KeyboardButtonIconMapping) local KEYCODE_TO_TEXT_MAPPING = require(script.KeyCodeToTextMapping) -- Services local UserInputService = game:GetService("UserInputService") return function(Sc...
583
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputLabel/Touch.luau
luau
.luau
return function(Scope : any, Prompt : ProximityPrompt, Config : {}) return { Scope:New("ImageLabel", { Name = "ButtonImage", ImageColor3 = Config.TextColor, BackgroundTransparency = 1, Size = UDim2.fromOffset(25, 31), AnchorPoint = Vector2.new(0.5,...
124
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/NewInputLabel/init.luau
luau
.luau
-- Constants local INPUT_KEY_LABELS = { [Enum.ProximityPromptInputType.Gamepad] = require(script.Gamepad), [Enum.ProximityPromptInputType.Touch] = require(script.Touch), ["Default"] = require(script.Keyboard), } return function(Scope : any, inputType, prompt, Config : {}) local Component = INPUT_KEY_LA...
97
MiaGobble/ExpressivePrompts
MiaGobble-ExpressivePrompts-eec74ea/src/SoundData.luau
luau
.luau
-- NOTE: This module will be improved when the input connections are recoded -- Imports local Packages = script.Parent:FindFirstChild("Packages") local Seam = if Packages then require(Packages.Seam) else require(script.Parent.Parent.Seam) -- Variables local Scope = Seam.Scope(Seam) return { AppearSoundId = Scope:...
153
playcurrent/shards
playcurrent-shards-946b20a/lib/init.luau
luau
.luau
-- -- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not -- distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. -- local HttpService = game:GetService("HttpService") local LocalizationService = game:GetService("LocalizationServi...
514
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/.lune/build/branch.luau
luau
.luau
local process = require("@lune/process") local stdio = require("@lune/stdio") local branches = require("./branches") for _, branch in ipairs(branches) do if table.find(process.args, branch) then return branch end end local index = stdio.prompt( "select", "What branch to build for? (Pass it in as argument when ...
94
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/.lune/build/branches.luau
luau
.luau
return { "dev", "prod", }
11
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/.lune/build/config/init.luau
luau
.luau
local fs = require("@lune/fs") local serde = require("@lune/serde") local process = require("@lune/process") local branch = require("./branch") local defaultConfig = serde.decode("toml", fs.readFile(".lune/build/config/default.toml")) -- ./default.toml would've been nice :sob: local config = { branch = branch } local...
239
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/.lune/build/generateConfig.luau
luau
.luau
local MLDSA87 = require("@shared/crypto/MlDSA").ML_DSA_87 local MLKEM1024 = require("@shared/crypto/MlKEM").MLKEM_1024 local CSPRNG = require("@shared/crypto/CSPRNG") local Base64 = require("@shared/crypto/base64") return function(config) local rules = table.clone(config.darkluaRules) local inject = table.clone(con...
445
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/CameraModule/CameraInput.luau
luau
.luau
--!nonstrict local ContextActionService = game:GetService("ContextActionService") local UserInputService = game:GetService("UserInputService") local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserGameSettings = UserSettings():GetService("UserGameSettings") local VRServic...
4,112
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/CameraModule/CameraToggleStateController.luau
luau
.luau
local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local GameSettings = UserSettings():GetService("UserGameSettings") local Input = require(script.Parent:WaitForChild("CameraInput")) local CameraUI = require(script.Parent:WaitForChild("CameraUI")) local CameraUtils ...
568
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/CameraModule/CameraUI.luau
luau
.luau
--!nonstrict local StarterGui = game:GetService("StarterGui") local initialized = false local CameraUI: any = {} do -- Instantaneously disable the toast or enable for opening later on. Used when switching camera modes. function CameraUI.setCameraModeToastEnabled(enabled: boolean) if not enabled and not initializ...
186
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/CameraModule/Invisicam.luau
luau
.luau
--!nonstrict --[[ Invisicam - Occlusion module that makes objects occluding character view semi-transparent 2018 Camera Update - AllYourBlox --]] --[[ Top Level Roblox Services ]]-- local PlayersService = game:GetService("Players") --[[ Constants ]]-- local ZERO_VECTOR3 = Vector3.new(0,0,0) local USE_STACKING_TRANS...
5,623
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/CameraModule/LegacyCamera.luau
luau
.luau
--!nonstrict --[[ LegacyCamera - Implements legacy controller types: Attach, Fixed, Watch 2018 Camera Update - AllYourBlox --]] local ZERO_VECTOR2 = Vector2.new() local PITCH_LIMIT = math.rad(80) local Util = require(script.Parent:WaitForChild("CameraUtils")) local CameraInput = require(script.Parent:WaitForChild("...
905
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/CameraModule/MouseLockController.luau
luau
.luau
--!nonstrict --[[ MouseLockController - Replacement for ShiftLockController, manages use of mouse-locked mode 2018 Camera Update - AllYourBlox --]] --[[ Constants ]]-- local DEFAULT_MOUSE_LOCK_CURSOR = "rbxasset://textures/MouseLockedCursor.png" local CONTEXT_ACTION_NAME = "MouseLockSwitchAction" local MOUSELOCK_AC...
1,603
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/CameraModule/OrbitalCamera.luau
luau
.luau
--!nonstrict --[[ OrbitalCamera - Spherical coordinates control camera for top-down games 2018 Camera Update - AllYourBlox --]] -- Local private variables and constants local UNIT_Z = Vector3.new(0,0,1) local X1_Y0_Z1 = Vector3.new(1,0,1) --Note: not a unit vector, used for projecting onto XZ plane local ZERO_VECTOR...
3,363
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/CameraModule/TransparencyController.luau
luau
.luau
--!nonstrict --[[ TransparencyController - Manages transparency of player character at close camera-to-subject distances 2018 Camera Update - AllYourBlox --]] local MAX_TWEEN_RATE = 2.8 -- per second local Util = require(script.Parent:WaitForChild("CameraUtils")) --[[ The Module ]]-- local TransparencyController = ...
1,403
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/CameraModule/VRCamera.luau
luau
.luau
--!nonstrict --[[ VRCamera - Roblox VR camera control module 2021 Roblox VR --]] --[[ Services ]]-- local PlayersService = game:GetService("Players") local VRService = game:GetService("VRService") local UserGameSettings = UserSettings():GetService("UserGameSettings") -- Local private variables and constants local C...
2,920
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/CameraModule/VRVehicleCamera.luau
luau
.luau
--!nonstrict --[[ VRVehicleCamera - Roblox VR vehicle camera control module 2021 Roblox VR --]] local EPSILON = 1e-3 local PITCH_LIMIT = math.rad(80) local YAW_DEFAULT = math.rad(0) local ZOOM_MINIMUM = 0.5 local ZOOM_SENSITIVITY_CURVATURE = 0.5 local DEFAULT_CAMERA_DIST = 16 local TP_FOLLOW_DIST = 200 local TP_FOLL...
1,731
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/CameraModule/ZoomController/Popper.luau
luau
.luau
--!nonstrict -------------------------------------------------------------------------------- -- Popper.lua -- Prevents your camera from clipping through walls. -------------------------------------------------------------------------------- local Players = game:GetService("Players") local camera = game.Workspace.Cur...
2,326
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/ControlModule/ClickToMoveController.luau
luau
.luau
--!nonstrict --[[ -- Original By Kip Turner, Copyright Roblox 2014 -- Updated by Garnold to utilize the new PathfindingService API, 2017 -- 2018 PlayerScripts Update - AllYourBlox --]] --[[ Flags ]] local FFlagUserExcludeNonCollidableForPathfindingSuccess, FFlagUserExcludeNonCollidableForPathfindingResult = pca...
8,970
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/ControlModule/ClickToMoveDisplay.luau
luau
.luau
--!nonstrict local ClickToMoveDisplay = {} local FAILURE_ANIMATION_ID = "rbxassetid://2874840706" local TrailDotIcon = "rbxasset://textures/ui/traildot.png" local EndWaypointIcon = "rbxasset://textures/ui/waypoint.png" local WaypointsAlwaysOnTop = false local WAYPOINT_INCLUDE_FACTOR = 2 local LAST_DOT_DISTANCE = 3 ...
4,301
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/ControlModule/PathDisplay.luau
luau
.luau
--!nonstrict local PathDisplay = {} PathDisplay.spacing = 8 PathDisplay.image = "rbxasset://textures/Cursors/Gamepad/Pointer.png" PathDisplay.imageSize = Vector2.new(2, 2) local currentPoints = {} local renderedPoints = {} local pointModel = Instance.new("Model") pointModel.Name = "PathDisplayPoints" local adornee...
846
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/ControlModule/TouchJump.luau
luau
.luau
--!nonstrict --[[ // FileName: TouchJump // Version 1.0 // Written by: jmargh // Description: Implements jump controls for touch devices. Use with Thumbstick and Thumbpad --]] local Players = game:GetService("Players") local GuiService = game:GetService("GuiService") --[[ Constants ]]-- local TOUCH_CONTROL_SHEET ...
1,499
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/ControlModule/TouchThumbstick.luau
luau
.luau
--!nonstrict --[[ TouchThumbstick --]] local Players = game:GetService("Players") local GuiService = game:GetService("GuiService") local UserInputService = game:GetService("UserInputService") local UserGameSettings = UserSettings():GetService("UserGameSettings") local FFlagUserClampClassicThumbstick do local succe...
2,019
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/ControlModule/VRNavigation.luau
luau
.luau
--!nonstrict --!nolint GlobalUsedAsLocal --[[ VRNavigation --]] local VRService = game:GetService("VRService") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local Players = game:GetService("Players") local PathfindingService = game:GetService("Pathfind...
3,235
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/PlayerModule/ControlModule/init.luau
luau
.luau
--!nonstrict --[[ ControlModule - This ModuleScript implements a singleton class to manage the selection, activation, and deactivation of the current character movement controller. This script binds to RenderStepped at Input priority and calls the Update() methods on the active controller instances. The character...
4,766
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/client/starterScripts/RbxCharacterSounds/init.luau
luau
.luau
--!nonstrict -- Roblox character sound script local Players = game:GetService("Players") local RunService = game:GetService("RunService") local AtomicBinding = require(script:WaitForChild("AtomicBinding")) local function loadFlag(flag: string) local success, result = pcall(function() return UserSettings():IsUserF...
2,172
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/assets/server/Health.server.luau
luau
.luau
-- Gradually regenerates the Humanoid's Health over time. local REGEN_RATE = 1 / 100 -- Regenerate this fraction of MaxHealth per second. local REGEN_STEP = 1 -- Wait this long between each regeneration step. -------------------------------------------------------------------------------- local Character = script.Pa...
145
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/benchmarks/Template.bench.luau
luau
.luau
--[[ This file is for use by Benchmarker (https://boatbomber.itch.io/benchmarker) |WARNING| THIS RUNS IN YOUR REAL ENVIRONMENT. |WARNING| --]] return { ParameterGenerator = function() return end, BeforeAll = function() end, AfterAll = function() end, BeforeEach = function() end, AfterEach = function() end, ...
116
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/benchmarks/arrayFindValue.bench.luau
luau
.luau
--[[ This file is for use by Benchmarker (https://boatbomber.itch.io/benchmarker) |WARNING| THIS RUNS IN YOUR REAL ENVIRONMENT. |WARNING| --]] local N = 1000 return { ParameterGenerator = function() local arr = table.freeze({ "a", "b", "c", "d", "e" }) local value = arr[math.random(1, #arr)] return arr, valu...
233
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/benchmarks/getArg.bench.luau
luau
.luau
--[[ This file is for use by Benchmarker (https://boatbomber.itch.io/benchmarker) |WARNING| THIS RUNS IN YOUR REAL ENVIRONMENT. |WARNING| --]] local parameters = 10 local N = 100 return { ParameterGenerator = function() return parameters, unpack(table.create(parameters, "value"), 1, parameters) end, BeforeAll ...
684
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/benchmarks/hookArgs.bench.luau
luau
.luau
--[[ This file is for use by Benchmarker (https://boatbomber.itch.io/benchmarker) |WARNING| THIS RUNS IN YOUR REAL ENVIRONMENT. |WARNING| --]] local N = 100 return { ParameterGenerator = function() return function() return "value1", "value2", "value3" end end, BeforeAll = function() end, AfterAll = funct...
371
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/benchmarks/hookVarargs.bench.luau
luau
.luau
--[[ This file is for use by Benchmarker (https://boatbomber.itch.io/benchmarker) |WARNING| THIS RUNS IN YOUR REAL ENVIRONMENT. |WARNING| --]] return { ParameterGenerator = function() local n = 1000 local t = table.create(n, "value") return function() return unpack(t, 1, n) end end, BeforeAll = functio...
351
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/benchmarks/iterateVarargs.bench.luau
luau
.luau
--[[ This file is for use by Benchmarker (https://boatbomber.itch.io/benchmarker) |WARNING| THIS RUNS IN YOUR REAL ENVIRONMENT. |WARNING| --]] local N = 100 return { ParameterGenerator = function() local parameters = math.random(1, 10) return unpack(table.create(parameters, "value"), 1, parameters) end, Befo...
366
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/benchmarks/lookupTable.bench.luau
luau
.luau
--[[ This file is for use by Benchmarker (https://boatbomber.itch.io/benchmarker) |WARNING| THIS RUNS IN YOUR REAL ENVIRONMENT. |WARNING| --]] local N = 1000 local keys = { "A", "B", "C", "D", "E", "F" } local lookup = { ["A"] = "a", ["C"] = "c", ["E"] = "e", } local magic = setmetatable(table.clone(lookup), { ...
299
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/benchmarks/mutateVarargs.bench.luau
luau
.luau
--[[ This file is for use by Benchmarker (https://boatbomber.itch.io/benchmarker) |WARNING| THIS RUNS IN YOUR REAL ENVIRONMENT. |WARNING| --]] local N = 100 return { ParameterGenerator = function() local parameters = math.random(1, 10) return unpack(table.create(parameters, 1), 1, parameters) end, BeforeAll ...
358
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/modules/client/output.luau
luau
.luau
local Network = require("@client/network") local MessageTypes = require("@shared/output/messageTypes") local Signal = require("@shared/signal") local Functions = require("@shared/functions") local Output = {} Output.MessageType = MessageTypes Output.MessageOut = Signal.new() Output.MessageIdDropped = Signal.new() fun...
362
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/modules/client/scriptManager.luau
luau
.luau
local Output = require("@client/output") local Network = require("@client/network") local UI = require("@client/ui") local Assets = require("@shared/assets") local WorkerManagers = require("@shared/workerManagers") local ScriptTypes = require("@shared/scriptManager/scriptTypes") local Module = {} Module.ScriptType = ...
1,073
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/modules/client/starterScripts.luau
luau
.luau
local Log = require("@shared/log") local Assets = require("@shared/assets") local scripts = Assets:get("starterScripts"):GetChildren() local starterScripts = {} function starterScripts:Init() Log.debug("Starting starter scripts...") for _, starterScript in ipairs(scripts) do task.defer(require, starterScript:Clon...
75
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/modules/client/ui/app.luau
luau
.luau
local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local StarterGui = game:GetService("StarterGui") local Commands = require("@client/commands") local Network = require("@client/network") local CommandInputContext = require("@shared/commands/inputContexts") local Ma...
4,141
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/modules/client/ui/create.luau
luau
.luau
local function applyProperties(instance, properties) for key, value in properties do if type(key) == "number" and typeof(value) == "Instance" then value.Parent = instance continue end if type(value) == "table" then applyProperties(instance, value) continue end if typeof(instance[key]) == "RBX...
171
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/modules/client/ui/init.luau
luau
.luau
local Players = game:GetService("Players") local Output = require("@client/output") local Log = require("@shared/log") local Maid = require("@shared/maid") local Signal = require("@shared/signal") local Functions = require("@shared/functions") local App = require("@self/app") local create = require("@self/create") l...
555
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/modules/client/wm/sandbox/blockedInstances/init.luau
luau
.luau
local ipairs = ipairs local table = table local lookup = {} local list = table.freeze(require("@self/list.yaml")) for _, class in ipairs(list) do lookup[class] = true end return table.freeze(lookup)
49
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/modules/client/wm/stackTrace.luau
luau
.luau
local table = table local ipairs = ipairs local SharedStackTrace = require("@shared/stackTrace") local Functions = require("@shared/functions") local VM = require("@client/wm/sandbox/vm") local vmStart = VM.vmStart local vmEnd = VM.vmEnd local getDebugInfo = VM.getDebugInfo local getRunning = VM.getRunning local Sta...
338
Open-SB/OpenSB
Open-SB-OpenSB-5852ada/modules/server/db/init.luau
luau
.luau
-- This doesn't persist between servers and is just an example. local datas = {} local function getUserData(userId: number) local data = datas[userId] if data then return data end data = { scripts = {}, } datas[userId] = data return data end local PlayerList = require("@shared/playerList") PlayerList.Remo...
292