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 |
|---|---|---|---|---|---|
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/AvatarViewport.luau | luau | .luau | local MarketplaceService = game:GetService("MarketplaceService")
local RunService = game:GetService("RunService")
local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local States = require(Avalog.SourceCode.Client.UI.States)... | 1,760 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/BuildTab.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local ServiceProvider = require(Avalog.SourceCode.Client.ServiceProvider)
local ScaleLimits = require(Avalog.SourceCode.Shared.ScaleLimits)
local StretchNumber = require(Ava... | 678 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/CatalogItemsTab.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local CatalogSearch = require(Avalog.SourceCode.Client.UI.StateExtensions.CatalogSearch)
local Navigation = require(Avalog.SourceCode.Client.UI.StateExtensions.Navigation)
l... | 936 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/CatalogMenu.luau | luau | .luau | local RunService = game:GetService("RunService")
local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local States = require(Avalog.SourceCode.Client.UI.States)
local Categories = require(Avalog.SourceCode.Shared.Categories)
... | 515 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/CategoryBar.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local States = require(Avalog.SourceCode.Client.UI.States)
local Categories = require(Avalog.SourceCode.Shared.Categories)
local CategoriesToNames = require(Avalog.SourceCod... | 598 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/CustomButton.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local Util = OnyxUI.Util
local Themer = OnyxUI.Themer
export type Props = {} & { [string]: any }
return function(Scope: Fusion.Scope<any>, Props: Props)
local Scope = Fu... | 312 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/EquippedItemsTab.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local States = require(Avalog.SourceCode.Client.UI.States)
local ItemsTab = require(script.Parent.ItemsTab)
export type Props = ItemsTab.Props & {}
return function(Scope:... | 290 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/IconSwap.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
export type Props = {
Options: Fusion.UsedAs<{ string }>?,
Selection: Fusion.UsedAs<number>?,
OnSwap: Fusion.UsedAs<(number) -> ()>?,
}
return function(Scope: Fusion.Sc... | 381 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/InventoryItemsTab.luau | luau | .luau | local AvatarEditorService = game:GetService("AvatarEditorService")
local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local Navigation = require(Avalog.SourceCode.Client.UI.StateExtensions.Navigation)
local States = require... | 958 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/ItemButton.luau | luau | .luau | local GroupService = game:GetService("GroupService")
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local State... | 2,439 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/ItemDetails.luau | luau | .luau | local GroupService = game:GetService("GroupService")
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local Colo... | 1,899 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/ItemsTab.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local States = require(Avalog.SourceCode.Client.UI.States)
local Children = Fusion.Children
local Out = Fusion.Out
local OnChange = Fusion.OnChange
export type Props = { [... | 1,059 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/NavigationBar.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local Config = require(Avalog.Config)
local States = require(Avalog.SourceCode.Client.UI.States)
local IconSwap = require(script.Parent.IconSwap)
local Tabs = require(script... | 757 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/PrimaryItemsTab.luau | luau | .luau | local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local States = require(Avalog.SourceCode.Client.UI.States)
local Sift = require(... | 736 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/PromoPopout.luau | luau | .luau | local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local Manifest = require(Avalog.SourceCode.Shared.Manifest)
loc... | 1,164 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/SkinTab.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local ServiceProvider = require(Avalog.SourceCode.Client.ServiceProvider)
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local States = require(Avalog.SourceCode.Client.UI.States)
local Children = Fusion.Children
local... | 480 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/SliderSetting.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local Children = Fusion.Children
export type Props = { [string]: any } & {
Value: Fusion.UsedAs<number>?,
Label: Fusion.UsedAs<string>?,
}
return function(Scope: Fusion... | 289 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/TabDisplay.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local Config = require(Avalog.Config)
local States = require(Avalog.SourceCode.Client.UI.States)
local Categories = require(Avalog.SourceCode.Shared.Categories)
local Child... | 796 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Components/Tabs.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local States = require(Avalog.SourceCode.Client.UI.States)
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local Children = Fusion.Children
export type Props = { [string]: any } & {
Options: Fusion.UsedAs<{ string }>?,... | 574 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/ScreenGuis/AvalogMenu.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local States = require(Avalog.SourceCode.Client.UI.States)
local ServiceProvider = require(Avalog.SourceCode.Client.ServiceProvider)
local Manifest = require(Avalog.Source... | 1,220 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/ScreenGuis/AvalogMenu.story.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local Fusion = require(Avalog.Parent.Fusion)
local OnyxUI = require(Avalog.Parent.OnyxUI)
local States = require(Avalog.SourceCode.Client.UI.States)
local StateExtensions = require(Avalog.SourceCode.Client.UI.StateExtensions)
local DarkTheme = require(Avalog.Sour... | 358 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/StateExtensions/Avatar.luau | luau | .luau | local Players = game:GetService("Players")
local Avalog = script.Parent.Parent.Parent.Parent.Parent
local States = require(script.Parent.Parent.States)
local Fusion = require(Avalog.Parent.Fusion)
local CatalogItems = require(Avalog.SourceCode.Client.UI.StateExtensions.CatalogItems)
local ServiceProvider = require(Ava... | 920 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/StateExtensions/CatalogItems.luau | luau | .luau | local AssetService = game:GetService("AssetService")
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local Avalog = script.Parent.Parent.Parent.Parent.Parent
local Future = require(Avalog.Parent.Future)
local AssetTypeFromId = require(Avalog.SourceCode.Shared... | 981 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/StateExtensions/CatalogSearch.luau | luau | .luau | local AvatarEditorService = game:GetService("AvatarEditorService")
local Avalog = script.Parent.Parent.Parent.Parent.Parent
local Future = require(Avalog.Parent.Future)
local Signal = require(Avalog.Parent.Signal)
local CatalogItems = require(script.Parent.CatalogItems)
export type SearchParams = {
SearchKeyword: st... | 690 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/StateExtensions/CloudConfig.luau | luau | .luau | local RunService = game:GetService("RunService")
local Avalog = script.Parent.Parent.Parent.Parent.Parent
local States = require(script.Parent.Parent.States)
local Sift = require(Avalog.Parent.Sift)
local Types = require(Avalog.SourceCode.Shared.Types)
local Zap
if RunService:IsRunning() then
Zap = require(Avalog.So... | 202 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/StateExtensions/Inventory.luau | luau | .luau | local AvatarEditorService = game:GetService("AvatarEditorService")
local Avalog = script.Parent.Parent.Parent.Parent.Parent
local States = require(script.Parent.Parent.States)
local Future = require(Avalog.Parent.Future)
local Signal = require(Avalog.Parent.Signal)
local Inventory = {}
function Inventory.Search(Asse... | 410 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/StateExtensions/Navigation.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local States = require(script.Parent.Parent.States)
local Categories = require(Avalog.SourceCode.Shared.Categories)
local Fusion = require(Avalog.Parent.Fusion)
local Config = require(Avalog.Config)
local Navigation = {}
local Scope = Fusion.scoped(Fusion)
Nav... | 202 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/StateExtensions/Screen.luau | luau | .luau | local Workspace = game:GetService("Workspace")
local Avalog = script.Parent.Parent.Parent.Parent.Parent
local Fusion = require(Avalog.Parent.Fusion)
local States = require(script.Parent.Parent.States)
local Out = Fusion.Out
local Scope = Fusion.scoped(Fusion)
local Screen = {}
Scope:Hydrate(Workspace.CurrentCamera... | 88 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/StateExtensions/Time.luau | luau | .luau | --[[
Exposes the current unix timestamp as a Fusion.Value
]]
local RunService = game:GetService("RunService")
local States = require(script.Parent.Parent.States)
local Time = {
_RenderStep = nil :: RBXScriptConnection?,
}
function Time.Start(self: typeof(Time))
self._RenderStep = RunService.RenderStepped:Connect... | 112 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/StateExtensions/UsageRecorder.luau | luau | .luau | --[[
Observes and records menu opening and closing.
]]
local RunService = game:GetService("RunService")
local Avalog = script.Parent.Parent.Parent.Parent.Parent
local Fusion = require(Avalog.Parent.Fusion)
local States = require(script.Parent.Parent.States)
local Zap: typeof(require(Avalog.SourceCode.Shared.Zap.clie... | 181 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/StateExtensions/init.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent
local Bootloader = require(Avalog.Parent.Bootloader)
local function GetModules()
local Modules = {}
for _, Child in ipairs(script:GetChildren()) do
if Child:IsA("ModuleScript") then
table.insert(Modules, Child)
end
end
return Modules
end
return Bootloader... | 78 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/States/init.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent
local Fusion = require(Avalog.Parent.Fusion)
local Types = require(Avalog.SourceCode.Shared.Types)
local Scope = Fusion.scoped(Fusion)
local States = {
Theme = Scope:Value(nil),
Catalog = {
SearchQuery = Scope:Value(""),
Mode = Scope:Value(1),
Category = Scope... | 371 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Storybook.storybook.luau | luau | .luau | return {
name = "Avalog",
storyRoots = {
script.Parent,
},
}
| 22 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Themes/Dark.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local ColorUtils = require(Avalog.Parent.ColorUtils)
local Util = OnyxUI.Util
local Themer = OnyxUI.Themer
local Scope = Fusion.scoped(Fusion)
return Themer.NewTheme(Scop... | 693 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/Themes/Light.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Avalog.Parent.OnyxUI)
local Fusion = require(Avalog.Parent.Fusion)
local ColorUtils = require(Avalog.Parent.ColorUtils)
local Util = OnyxUI.Util
local Themer = OnyxUI.Themer
local Scope = Fusion.scoped(Fusion)
return Themer.NewTheme(Scop... | 725 |
loneka/avalog | loneka-avalog-b92424d/src/Client/UI/init.luau | luau | .luau | local Players = game:GetService("Players")
local Avalog = script.Parent.Parent.Parent
local Fusion = require(Avalog.Parent.Fusion)
local StateExtensions = require(Avalog.SourceCode.Client.UI.StateExtensions)
local OnyxUI = require(Avalog.Parent.OnyxUI)
local States = require(script.States)
local Config = require(Avalo... | 183 |
loneka/avalog | loneka-avalog-b92424d/src/Server/Avatar/init.luau | luau | .luau | local MarketplaceService = game:GetService("MarketplaceService")
local Avalog = script.Parent.Parent.Parent
local Future = require(Avalog.Parent.Future)
local RateLimit = require(Avalog.Parent.RateLimit)
local HumanoidDescriber = require(Avalog.Parent.HumanoidDescriber)
local Zap = require(Avalog.SourceCode.Shared.Zap... | 1,040 |
loneka/avalog | loneka-avalog-b92424d/src/Server/Cloud/UsageRecorder.luau | luau | .luau | --[[
Records in-game usage of Avalog.
]]
local Players = game:GetService("Players")
local Avalog = script.Parent.Parent.Parent.Parent
local Types = require(Avalog.SourceCode.Shared.Types)
local Sift = require(Avalog.Parent.Sift)
export type Session = {
UserId: number,
StartTime: number,
EndTime: number?,
MenuSe... | 798 |
loneka/avalog | loneka-avalog-b92424d/src/Server/Cosmetics/UpgradeMeshParts.luau | luau | .luau | local AssetService = game:GetService("AssetService")
local ReflectionService = game:GetService("ReflectionService")
local MESH_PART_PROPS = ReflectionService:GetPropertiesOfClass("MeshPart")
--[[
Reinstantiates the given `MeshParts` to have valid mesh content.
]]
local function UpgradeMeshParts(MeshParts: { MeshPart... | 581 |
loneka/avalog | loneka-avalog-b92424d/src/Server/PlayerDataStorage/DataValidater.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent
local t = require(Avalog.Parent.t)
return t.strictInterface({
Avatar = t.strictInterface({
Data = t.optional(t.buffer),
}),
})
| 43 |
loneka/avalog | loneka-avalog-b92424d/src/Server/PlayerDataStorage/PlayerDataStore.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent
local Squash = require(Avalog.Parent.Squash)
local DataValidater = require(script.Parent.DataValidater)
local NewPlayerDataStore = require(Avalog.SourceCode.Storage.Utils.PlayerDataStore)
local AvatarDataSerDes = require(script.Parent.SerDes.AvatarData)
local HumanoidDe... | 276 |
loneka/avalog | loneka-avalog-b92424d/src/Server/PlayerDataStorage/SerDes/AvatarData.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent.Parent.Parent
local Squash = require(Avalog.Parent.Squash)
local S = Squash
local T = Squash.T
local AccessorySpec = S.record {
AssetId = T(S.number(8)),
AccessoryType = T(S.EnumItem(Enum.AccessoryType)),
Order = T(S.opt(S.number(4))),
Puffiness = T(S.opt(S.number(8))),
... | 591 |
loneka/avalog | loneka-avalog-b92424d/src/Server/PlayerDataStorage/init.luau | luau | .luau | local Avalog = script.Parent.Parent.Parent
local PlayerDataStore = require(script.PlayerDataStore)
local Config = require(Avalog.Config)
local CONFIG = Config:Get()
local PlayerDataStorage = {
Store = PlayerDataStore,
}
function PlayerDataStorage:Start()
if CONFIG.DataStoreEnabled then
PlayerDataStore:Start()
e... | 79 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/AssetAccessoryType.luau | luau | .luau | local ASSET_ACCESSORY_TYPES = {
[Enum.AvatarAssetType.Hat] = Enum.AccessoryType.Hat,
[Enum.AvatarAssetType.HairAccessory] = Enum.AccessoryType.Hair,
[Enum.AvatarAssetType.FaceAccessory] = Enum.AccessoryType.Face,
[Enum.AvatarAssetType.NeckAccessory] = Enum.AccessoryType.Neck,
[Enum.AvatarAssetType.ShoulderAccessor... | 396 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/Assets/Icons.luau | luau | .luau | local Icons = {}
return Icons
| 7 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/Assets/init.luau | luau | .luau | local Icons = require(script.Icons)
local Images = require(script.Images)
return {
Icons = Icons,
Images = Images,
}
| 28 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/AvatarAssetTypes.luau | luau | .luau | local AvatarAssetTypes = {
Types = {
RigidAccessories = {
Enum.AvatarAssetType.BackAccessory,
Enum.AvatarAssetType.FaceAccessory,
Enum.AvatarAssetType.HairAccessory,
Enum.AvatarAssetType.NeckAccessory,
Enum.AvatarAssetType.FrontAccessory,
Enum.AvatarAssetType.WaistAccessory,
Enum.AvatarAssetType... | 825 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/Categories/CategoriesToNames.luau | luau | .luau | local Categories = require(script.Parent)
local function CategoriesToNames(CategoriesTable: { Categories.Category })
local Names = {}
for _, Category in ipairs(CategoriesTable) do
table.insert(Names, Category.Name)
end
return Names
end
return CategoriesToNames
| 56 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/Categories/init.luau | luau | .luau | local AvatarAssetTypes = require(script.Parent.AvatarAssetTypes)
export type Category = {
Name: string,
CategoryFilter: Enum.CatalogCategoryFilter,
SubCategories: { Category }?,
AssetTypes: { Enum.AvatarAssetType }?,
BundleTypes: { Enum.BundleType }?,
}
local function PurgeBundles(Categories: { Category }): { Ca... | 1,191 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/Manifest.luau | luau | .luau | return {
AssetId = 122214542643927,
Version = "0.1.12",
}
| 23 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/ScaleLimits.luau | luau | .luau | return {
BodyType = { Min = 0, Max = 1 },
Proportion = { Min = 0, Max = 1 },
Height = { Min = 0.9, Max = 1.05 },
Width = { Min = 0.7, Max = 1 },
Depth = { Min = 0.85, Max = 1 },
Head = { Min = 0.95, Max = 1 },
}
| 99 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/Types.luau | luau | .luau | export type ItemType = "Asset" | "Bundle"
export type ItemSale = {
experienceId: string,
jobId: string,
itemId: string,
itemType: ItemType,
robuxPrice: number,
unitsSold: number,
}
export type AvalogUsageSnapshot = {
experienceId: string,
placeId: string,
jobId: string,
uptime: number,
totalMenuOpens: numb... | 278 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/Utils/ApplyCosmetic.luau | luau | .luau | local HttpService = game:GetService("HttpService")
local function IsCosmeticApplied(Character: Model, Id: string)
for _, Descendant in Character:GetDescendants() do
if Descendant:GetAttribute("CosmeticId") == Id then
return true
end
end
return false
end
local function ApplyCosmetic(Character: Model, Id: st... | 388 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/Utils/AssetIdsFromAvatarData.luau | luau | .luau | local function AssetIdsFromAvatarData(AvatarData): { string }
local AssetIds = {
AvatarData.Face,
}
for _, Accessory in AvatarData.Accessories do
table.insert(AssetIds, Accessory.AssetId)
end
for _, AssetId in AvatarData.Clothing do
table.insert(AssetIds, AssetId)
end
for _, EmoteAssetIds in AvatarData.Em... | 142 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/Utils/AssetTypeFromId.luau | luau | .luau | local ASSET_TYPES = Enum.AvatarAssetType:GetEnumItems()
local function AssetTypeFromId(Id: number): Enum.AvatarAssetType?
for _, AssetType in ipairs(ASSET_TYPES) do
if AssetType.Value == Id then
return AssetType
end
end
return nil
end
return AssetTypeFromId
| 73 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/Utils/DeepEquals.luau | luau | .luau | local function DeepEquals(TableA: { [any]: any }, TableB: { [any]: any })
for Key, Value in pairs(TableA) do
if (typeof(Value) == "table") and (typeof(TableB[Key]) == "table") then
if not DeepEquals(TableB[Key], Value) then
return false
end
elseif Value ~= TableB[Key] then
return false
end
end
re... | 107 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/Utils/GetStoredCosmeticModel.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CosmeticsStorage: Folder? = nil
local function GetModelByDomain(Id: string)
if CosmeticsStorage == nil then
CosmeticsStorage = ReplicatedStorage:WaitForChild("AVALOG_COSMETICS")
end
if CosmeticsStorage ~= nil then
return CosmeticsStorage:Wait... | 96 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/Utils/PlayerIsInGroup.luau | luau | .luau | local Players = game:GetService("Players")
local SavedResults = {} :: { [number]: {
[number]: boolean,
} }
local function GetEntry(Player: Player)
if SavedResults[Player.UserId] == nil then
SavedResults[Player.UserId] = {}
end
return SavedResults[Player.UserId]
end
--[[
Checks if the given `Player` is a memb... | 199 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/Utils/PlayerOwnsAsset.luau | luau | .luau | local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local SavedResults = {} :: { [number]: {
[number]: boolean,
} }
local function GetEntry(Player: Player)
if SavedResults[Player.UserId] == nil then
SavedResults[Player.UserId] = {}
end
return SavedResults... | 261 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/Utils/SquashNumber.luau | luau | .luau | local function SquashNumber(Value, Min, Max)
local Difference = Max - Min
return Min + (Value * Difference)
end
return SquashNumber
| 33 |
loneka/avalog | loneka-avalog-b92424d/src/Shared/Utils/StretchNumber.luau | luau | .luau | local function StretchNumber(Output, Min, Max)
local Difference = Max - Min
return (Output - Min) / Difference
end
return StretchNumber
| 32 |
loneka/avalog | loneka-avalog-b92424d/src/Storage/Utils/PlayerDataStore/init.luau | luau | .luau | local Players = game:GetService("Players")
local Avalog = script.Parent.Parent.Parent.Parent
local Skilift = require(Avalog.Parent.Skilift)
local Signal = require(Avalog.Parent.Signal)
local Stator = require(Avalog.Parent.Stator)
local Sift = require(Avalog.Parent.Sift)
local function NewPlayerDataStore(Options)
loc... | 414 |
MrChickenRocket/Server-Authority-Tutorial-Cakeman | MrChickenRocket-Server-Authority-Tutorial-Cakeman-ed8f91c/ReplicatedFirst/CakeClient.local.luau | luau | .luau | --!strict
-- CakeClient -- prediction bootstrap, camera, and the CameraDir feed.
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local UserInputService = game:GetService("UserInputService")
if not game:IsLoaded() the... | 1,361 |
MrChickenRocket/Server-Authority-Tutorial-Cakeman | MrChickenRocket-Server-Authority-Tutorial-Cakeman-ed8f91c/ReplicatedFirst/CakeSim.luau | luau | .luau | --!strict
-- CakeSim -- locomotion for every player's CakeMan, run through BindToSimulation on
-- both sides. It must stay deterministic, because the step re-runs several times during
-- reconciliation: no wall clocks, no randomness, no instance creation, no effects. Keep
-- time with dt. The global time() is resim-saf... | 2,559 |
MrChickenRocket/Server-Authority-Tutorial-Cakeman | MrChickenRocket-Server-Authority-Tutorial-Cakeman-ed8f91c/ReplicatedFirst/Smoothing.luau | luau | .luau | --!strict
local Smoothing = {}
-- Critically-damped spring toward `tgt`; `st` ~= time to arrive.
-- Returns (newPos, newVel); thread `vel` back in next call.
function Smoothing.damp(cur: Vector3, tgt: Vector3, vel: Vector3, st: number, dt: number): (Vector3, Vector3)
st = math.max(st, 1e-4)
local omega = 2 / st
loc... | 169 |
MrChickenRocket/Server-Authority-Tutorial-Cakeman | MrChickenRocket-Server-Authority-Tutorial-Cakeman-ed8f91c/samples/cube/ReplicatedFirst/CubeClient.local.luau | luau | .luau | --!strict
-- CubeClient -- prediction bootstrap, camera, and the CameraDir feed.
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
if not game:IsLoaded() the... | 983 |
MrChickenRocket/Server-Authority-Tutorial-Cakeman | MrChickenRocket-Server-Authority-Tutorial-Cakeman-ed8f91c/samples/cube/ReplicatedFirst/CubePresent.luau | luau | .luau | --!strict
-- CubePresent -- the visual layer.
--
-- Copy A: the authoritative part. Replicated, simulated, and locally invisible.
-- Copy B: a client-only, anchored clone. A picture. Never simulated; we set its CFrame.
local RunService = game:GetService("RunService")
local CollectionService = game:GetService("Collectio... | 1,323 |
MrChickenRocket/Server-Authority-Tutorial-Cakeman | MrChickenRocket-Server-Authority-Tutorial-Cakeman-ed8f91c/samples/cube/ReplicatedFirst/CubeSim.luau | luau | .luau | --!strict
-- CubeSim -- the whole character. Runs through BindToSimulation on both machines.
--
-- The contract: the owner (the server for all cubes, a client for its own) reads live input
-- and writes intent as attributes. Every peer then drives the actuators from those
-- attributes, identically. Attributes written ... | 1,382 |
Dawgra/Facial-Unification | Dawgra-Facial-Unification-ca5e2df/Content/Attribution.luau | luau | .luau | local DEV = false
local VERSION = "v1.5b"
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")
--- Version comparison method inspired by @ForeverHD's TopbarPlus!
--- @return boolean -- True if module is up ... | 296 |
Dawgra/Facial-Unification | Dawgra-Facial-Unification-ca5e2df/Content/HeadShapes.luau | luau | .luau | --!strict
local data : {[string] : number} = {
-- SHAPES (03/25/2026), thanks @Xekran_n!
RobloxClassic = 2432102561;
Blockhead = 6340101;
Roundy = 6340213;
Trim = 6340227;
Octoblox = 6340133;
Hex = 6340141;
RoxBox = 6340154;
EraserHead = 6340161;
Barrel = 6340170;
CylinderMadness = 6340192;
Roll = 6340198;... | 399 |
Dawgra/Facial-Unification | Dawgra-Facial-Unification-ca5e2df/Content/ToHat.luau | luau | .luau | return {
-- HATS (01/28/2026)
[90615525568323] = {Name = "The Jade Catseye"; OriginalHat = 1193866; Texture = 105254644661016};
}
| 51 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/Bootstrapper/Controller/init.client.luau | luau | .luau | local ReplicatedFirst = game:GetService("ReplicatedFirst")
local Bootstrapper = ReplicatedFirst:WaitForChild("Bootstrapper")
local controller: Instance = script.Parent
assert(controller and controller:IsA("ModuleScript"))
local success, module = xpcall(require, function(err)
error(`!! FATAL ERROR REQUIRING CONTRO... | 284 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/Bootstrapper/Module/init.client.luau | luau | .luau | local ReplicatedFirst = game:GetService("ReplicatedFirst")
local Bootstrapper = ReplicatedFirst:WaitForChild("Bootstrapper")
local module = script.Parent
assert(module and module:IsA("ModuleScript"))
script.Name = `SHARED_{module.Name}`
task.defer(function ()
script.Parent = Bootstrapper
end)
task.spawn(xpcall,... | 115 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/Controllers/UIController.luau | luau | .luau | --!strict
local UIController = {}
type Self = typeof(UIController)
local Players = game:GetService("Players")
local StarterGui = game:GetService("StarterGui")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local player = assert(Players.LocalPlayer)
local playerGui = player:WaitForChild("PlayerGui")
loca... | 671 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Common/React.luau | luau | .luau | local React = require(game.ReplicatedStorage.Packages.React)
--[[
local createElement = React.createElement
local useEffect = React.useEffect
local Shared = game.ReplicatedStorage.Shared
local NoYield = require(Shared.NoYield)
local ConVar = require(Shared.ConVar)
local react_aggressive_log = ConVar.Declare("react_a... | 542 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Common/ReactRoblox.luau | luau | .luau | local ReactRoblox = require(game.ReplicatedStorage.Packages.ReactRoblox)
export type RootType = ReactRoblox.RootType
return ReactRoblox
| 33 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Common/Ripple.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Ripple = require(ReplicatedStorage.Packages.Ripple)
export type Motion<T> = Ripple.Motion<T>
export type MotionState = Ripple.MotionState
export type MotionSolver = Ripple.MotionSolver
export type MotionGoal = Ripple.MotionGoal
return Ripple | 69 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Common/RootState.luau | luau | .luau | local Common = script.Parent
local React = require(Common.React)
local Context = React.createContext({} :: {
BasePlayerGui: BasePlayerGui?,
Root: { current: GuiBase2d },
DisplayOrder: number,
SetDisplayOrder: (number) -> (),
ScreenInsets: Enum.ScreenInsets,
SetScreenInsets: (Enum.ScreenInsets... | 806 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Common/StoryBuilder.luau | luau | .luau | --!strict
local StoryBuilder = {}
local Common = script.Parent
local Cache = shared.StoryCache
local React = require(Common.React)
local ReactRoblox = require(Common.ReactRoblox)
local RootState = require(Common.RootState)
if not Cache then
Cache = {}
shared.StoryCache = Cache
end
local Story = {}
Story.__in... | 1,169 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Components/Noise.luau | luau | .luau | local UI = script:FindFirstAncestor("UI")
local Common = UI.Common
local Hooks = UI.Hooks
local React = require(Common.React)
local useA11Y = require(Hooks.useA11Y)
local useTimer = require(Hooks.useTimer)
local NOISE_CROP = Vector2.new(256, 256)
local NOISE_SIZE = Vector2.new(1023, 577)
local NOISE_RANGE = NOISE_SI... | 411 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Components/Noise.story.luau | luau | .luau | local UI = script:FindFirstAncestor("UI")
local StoryBuilder = require(UI.Common.StoryBuilder)
return StoryBuilder.Create(script.Parent.Noise, {
Size = UDim2.fromScale(1, 1),
AnchorPoint = Vector2.one / 2,
Position = UDim2.fromScale(0.5, 0.5),
ImageColor3 = Color3.fromRGB(255, 255, 255),
ImageTrans... | 105 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Developer/CompileSettings.luau | luau | .luau | local ScriptEditorService = game:GetService("ScriptEditorService")
local Shared = game.ReplicatedStorage.Shared
local StringBuilder = require(Shared.StringBuilder)
local Settings = require(Shared.Settings)
local typeNames = table.freeze({
"Bool",
"Color",
"Number",
"String",
})
local enumTypes = tabl... | 1,455 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Developer/CompileSettings.story.luau | luau | .luau | local UI = script:FindFirstAncestor("UI")
local StoryBuilder = require(UI.Common.StoryBuilder)
local CompileSettings = require(script.Parent.CompileSettings)
return StoryBuilder.Custom(CompileSettings) | 41 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Hooks/useA11Y.luau | luau | .luau | local Hooks = script.Parent
local useProperty = require(Hooks.useProperty)
local GuiService = game:GetService("GuiService")
--- shorthand for useAccessibility
local function useA11Y()
return {
ReducedMotion = useProperty(GuiService, function (rbx)
return rbx.ReducedMotionEnabled
end),
... | 132 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Hooks/useAttribute.luau | luau | .luau | local UI = script:FindFirstAncestor("UI")
local React = require(UI.Common.React)
local Shared = game.ReplicatedStorage.Shared
local Guid = require(Shared.Guid)
type AttributeMemo = {
[string]: (any) -> (),
}
type InstanceMemo = {
[string]: AttributeMemo
}
local memos = {} :: {
[Instance]: InstanceMemo
}... | 466 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Hooks/useAttributeBinding.luau | luau | .luau | local UI = script:FindFirstAncestor("UI")
local React = require(UI.Common.React)
local Shared = game.ReplicatedStorage.Shared
local Guid = require(Shared.Guid)
type AttributeMemo = {
-- Guid
[string]: (any) -> (),
}
type InstanceMemo = {
[string]: AttributeMemo
}
local memos = {} :: {
[Instance]: In... | 485 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Hooks/useChild.luau | luau | .luau | --!strict
local UI = script:FindFirstAncestor("UI")
local React = require(UI.Common.React)
local Hooks = script.Parent
local useSignal = require(Hooks.useSignal)
local function useChild(inst: Instance?, name: string, recursive: boolean?): Instance?
local child: Instance?, setChild = React.useState(nil :: Instanc... | 254 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Hooks/useMotion.luau | luau | .luau | --[[
Creates a memoized Motion object set to the given initial value.
Returns a binding that updates with the Motion, along with the Motion
object.
]]
local UI = script:FindFirstAncestor("UI")
local Common = UI.Common
local React = require(Common.React)
local Ripple = require(Common.Ripple)
local Hooks ... | 207 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Hooks/useOwnership.luau | luau | .luau | local Shared = game.ReplicatedStorage.Shared
local Marketplace = require(Shared.Marketplace)
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local Promise = require(Shared.Promise)
type Promise = Promise.Class
local UI = script:FindFirstAncestor("UI")
local React = require(UI.Common.Rea... | 226 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Hooks/usePlayerData.luau | luau | .luau | local UI = script:FindFirstAncestor("UI")
local React = require(UI.Common.React)
local Shared = game.ReplicatedStorage.Shared
local PlayerData = require(Shared.PlayerData)
local Hooks = script.Parent
local useSignal = require(Hooks.useSignal)
type SaveData = PlayerData.SaveData
--- A hook that provides the local pl... | 525 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Hooks/useProductInfo.luau | luau | .luau | local Root = script:FindFirstAncestor("UI")
local Common = Root.Common
local React = require(Common.React)
local Shared = game.ReplicatedStorage.Shared
local Marketplace = require(Shared.Marketplace)
local Promise = require(Shared.Promise)
type Promise = Promise.Class
local promises = {} :: {
[string]: Promise
... | 442 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Hooks/useProperty.luau | luau | .luau | --!strict
local UI = script:FindFirstAncestor("UI")
local React = require(UI.Common.React)
local Shared = game.ReplicatedStorage.Shared
local Guid = require(Shared.Guid)
local useRef = React.useRef
local useState = React.useState
local useEffect = React.useEffect
type PropertyMemo = {
[string]: (any) -> ()
}
t... | 827 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Hooks/usePropertyBinding.luau | luau | .luau | --!strict
local UI = script:FindFirstAncestor("UI")
local React = require(UI.Common.React)
local Shared = game.ReplicatedStorage.Shared
local Guid = require(Shared.Guid)
local useRef = React.useRef
local useState = React.useState
type Binding<T> = React.Binding<T>
local nullBinding = React.createBinding(nil)
type ... | 812 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Hooks/useRestore.luau | luau | .luau | local UI = script:FindFirstAncestor("UI")
local React = require(UI.Common.React)
local mem = shared.__useRestoreTable
if mem == nil then
mem = {}
shared.__useRestoreTable = mem
end
type BasicStateAction<S> = ((S) -> S) | S
type Dispatch<A> = (A) -> ()
--- Functions the same as useState, but remembers its val... | 352 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Hooks/useSetting.lua | luau | .lua | local UI = script:FindFirstAncestor("UI")
local React = require(UI.Common.React)
local Shared = game.ReplicatedStorage.Shared
local Settings = require(Shared.Settings)
local Hooks = script.Parent
local useSignal = require(Hooks.useSignal)
local usePlayerData = require(Hooks.usePlayerData)
type SettingName = Settings... | 360 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Hooks/useSignal.luau | luau | .luau | --!strict
local Shared = game.ReplicatedStorage.Shared
local UI = script:FindFirstAncestor("UI")
local React = require(UI.Common.React)
local Signal = require(Shared.Signal)
type Signal<T...> = Signal.Typed<T...> | RBXScriptSignal<T...>
local function useSignal<T...>(signal: Signal<T...>?, callback: (T...) -> ()?, ... | 179 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Hooks/useTimer.luau | luau | .luau | local UI = script:FindFirstAncestor("UI")
local React = require(UI.Common.React)
local function useTimer(framerate: number, callback: (dt: number) -> (), deps: { any }?)
if deps then
table.insert(deps, framerate)
end
React.useEffect(function ()
local thread = task.spawn(function ()
... | 159 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Client/UI/Widgets/SourceMic.luau | luau | .luau | local UI = script:FindFirstAncestor("UI")
local React = require(UI.Common.React)
local Players = game:GetService("Players")
local Hooks = UI.Hooks
local useMotion = require(Hooks.useMotion)
local useSignal = require(Hooks.useSignal)
local useProperty = require(Hooks.useProperty)
export type Props = {
Player: Pla... | 1,862 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/Future.lua | luau | .lua | local REQUIRED_MODULE = require(script.Parent._Index["red-blox_future@1.0.1"]["future"])
export type Future<T...> = REQUIRED_MODULE.Future<T...>
return REQUIRED_MODULE
| 40 |
MaximumADHD/Roblox-Boilerplate | MaximumADHD-Roblox-Boilerplate-4358d1a/Packages/Promise.lua | luau | .lua | return require(script.Parent._Index["evaera_promise@4.0.0"]["promise"])
| 20 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.