repo
stringclasses
350 values
file_path
stringlengths
29
200
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.01M
tokens
int64
2
598k
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/ColorPicker.luau
luau
.luau
-- Roact version by @sircfenner -- Ported to Fusion by @YasuYoshida local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent local StudioComponentsUtil = StudioComponents:FindFirstChild("Util") local BoxBorder = req...
2,123
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Dropdown/Constants.luau
luau
.luau
return { RowHeight = 25, TextPaddingLeft = 5, TextPaddingRight = 3, MaxVisibleRows = 6, }
32
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Dropdown/DropdownItem.luau
luau
.luau
local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent.Parent local StudioComponentsUtil = StudioComponents:FindFirstChild("Util") local themeProvider = require(StudioComponentsUtil.themeProvider) local getModifier...
693
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Dropdown/init.luau
luau
.luau
-- Roact version by @sircfenner -- Ported to Fusion by @YasuYoshida local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent local StudioComponentsUtil = StudioComponents:FindFirstChild("Util") local ScrollFrame = r...
3,384
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/IconButton.luau
luau
.luau
local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent local StudioComponentsUtil = StudioComponents:FindFirstChild("Util") local BoxBorder = require(StudioComponents.BoxBorder) local getMotionState = require(Stud...
893
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Label.luau
luau
.luau
-- Roact version by @sircfenner -- Ported to Fusion by @YasuYoshida local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent local StudioComponentsUtil = StudioComponents:FindFirstChild("Util") local getMotionState ...
476
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Licenses/StudioComponents.luau
luau
.luau
--[[ MIT License Copyright (c) 2021 sircfenner Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ...
236
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/LimitedTextInput.luau
luau
.luau
local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent local StudioComponentsUtil = StudioComponents:FindFirstChild("Util") local TextInput = require(StudioComponents.TextInput) local getState = require(StudioComp...
636
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Loading.luau
luau
.luau
-- Written by @boatbomber local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent local StudioComponentsUtil = StudioComponents:FindFirstChild("Util") local getMotionState = require(StudioComponentsUtil.getMotionSt...
1,036
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/MainButton.luau
luau
.luau
-- Roact version by @sircfenner -- Ported to Fusion by @YasuYoshida local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent local StudioComponentsUtil = StudioComponents:FindFirstChild("Util") local Button = requir...
205
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/ProgressBar.luau
luau
.luau
-- Written by @boatbomber local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent local StudioComponentsUtil = StudioComponents:FindFirstChild("Util") local getMotionState = require(StudioComponentsUtil.getMotionSt...
422
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/ScrollFrame.luau
luau
.luau
-- Written by @boatbomber -- Modified by @mvyasu local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent local StudioComponentsUtil = StudioComponents:FindFirstChild("Util") local BaseScrollFrame = require(StudioCo...
759
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Shadow.luau
luau
.luau
-- Written by @boatbomber type ShadowProperties = { Side: string, Transparency: number?, [any]: any, } local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent local StudioComponentsUtil = StudioComponents:Fin...
576
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Slider.luau
luau
.luau
-- Roact version by @sircfenner -- Ported to Fusion by @YasuYoshida local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent local StudioComponentsUtil = StudioComponents:FindFirstChild("Util") local BoxBorder = req...
1,521
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/TextInput.luau
luau
.luau
-- Roact version by @sircfenner -- Ported to Fusion by @YasuYoshida local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent local StudioComponentsUtil = StudioComponents:FindFirstChild("Util") local BoxBorder = req...
970
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/TextInputAccented.luau
luau
.luau
-- Roact version by @sircfenner -- Ported to Fusion by @YasuYoshida local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent local StudioComponentsUtil = StudioComponents:FindFirstChild("Util") local BoxBorder = req...
1,028
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/TextInputHighlighted.luau
luau
.luau
local PluginDebugService = game:GetService("PluginDebugService") -- Roact version by @sircfenner -- Ported to Fusion by @YasuYoshida local Plugin = script.Parent.Parent.Parent --script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:WaitForChild("Packages"):WaitForChild("Fusion")) local Highlighter =...
1,343
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Title.luau
luau
.luau
-- Written by @boatbomber local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent local StudioComponentsUtil = StudioComponents:FindFirstChild("Util") local getState = require(StudioComponentsUtil.getState) local t...
452
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Util/constants.luau
luau
.luau
return { CurvedBoxes = true, CornerRadius = UDim.new(0, 2), TextSize = 14, }
28
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Util/getDragInput.luau
luau
.luau
-- Roact version by @sircfenner -- Ported to Fusion by @YasuYoshida --[[ 1. onInputBegan setState({ Dragging = true }) if widget then globalConnection = RunService.Heartbeat(() => onInput(widget.relativePosition)) else globalConnection = InputService.InputChanged(() => onInput(input.Position)) 2. onInpu...
1,267
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Util/getModifier.luau
luau
.luau
local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local Computed = Fusion.Computed local unwrap = require(script.Parent.unwrap) local types = require(script.Parent.types) type modifierInput = { Enabled: types.CanBeState<boolean>?, Hovering: type...
298
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Util/getMotionState.luau
luau
.luau
local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local Computed = Fusion.Computed local unwrap = require(script.Parent.unwrap) local types = require(script.Parent.types) -- this technically could be changed later on in a way that -- allows people...
275
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Util/getSelectedState.luau
luau
.luau
local unwrap = require(script.Parent.unwrap) local types = require(script.Parent.types) type GetSelectedStateProperties = { Value: types.Value<any>?, Options: types.CanBeState<{any}>?, OnSelected: ((selectedOption: any)->nil)?, } return function(props: GetSelectedStateProperties): ()->any return function() loca...
159
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Util/getState.luau
luau
.luau
local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local unwrap = require(script.Parent.unwrap) local types = require(script.Parent.types) type stateOrAny = types.StateObject<any> | any return function(inputValue: stateOrAny, defaultValue: stateOrA...
182
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Util/stripProps.luau
luau
.luau
return function(props, exclude) local export = table.clone(props) for _, k in ipairs(exclude) do export[k] = nil end return export end
41
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Util/themeProvider.luau
luau
.luau
local types = require(script.Parent.types) type styleStyleGuideColor = Enum.StudioStyleGuideColor | types.StateObject<Enum.StudioStyleGuideColor> type styleGuideModifier = Enum.StudioStyleGuideModifier | types.StateObject<Enum.StudioStyleGuideModifier> type computedOrValue = types.Computed<Color3> | types.Value<Color3...
860
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Util/types.luau
luau
.luau
--!strict -- This is a duplicate of Fusion's PubTypes module because for whatever reason type checking doesn't like :FindFirstAncestorWhichIsA() -- While not a pretty solution, it's the easier solution without causing a huge mess within the components -- If the components are updated to use a newer version of Fusion,...
1,149
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/Util/unwrap.luau
luau
.luau
return function(x: any, useDependency: boolean?): any if typeof(x)=="table" and x.type=="State" then return x:get(useDependency) end return x end
41
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/VerticalCollapsibleSection.luau
luau
.luau
-- Roact version by @sircfenner -- Ported to Fusion by @YasuYoshida local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent local StudioComponentsUtil = StudioComponents:FindFirstChild("Util") local VerticalExpandi...
1,539
Ultrasonic1209/Zappy
Ultrasonic1209-Zappy-2577109/src/Components/StudioComponents/VerticalExpandingList.luau
luau
.luau
-- Roact version by @sircfenner -- Ported to Fusion by @YasuYoshida local Plugin = script:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(Plugin:FindFirstChild("Fusion", true)) local StudioComponents = script.Parent local StudioComponentsUtil = StudioComponents:FindFirstChild("Util") local Background = re...
514
Levnth/Modula
Levnth-Modula-9142035/modula/init.luau
luau
.luau
--!strict -- [Dependencies] local Promise = require(script.Parent["typed-promise"]) local Modula = {} -- [Types] export type ModulaType = typeof(Modula) type PredicateFn = (Module: ModuleScript) -> boolean type DirectoryType = {[number]: ModuleScript | Instance} type DepthType = "Children" | "Descendants" ...
860
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/place/ServerScriptService/MainModule.luau
luau
.luau
--[[ TheNexusAvenger Loader for Nexus VR Backpack. --]] --!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") return function() --Copy NexusVRBackpack to ReplicatedStorage if it doesn't exist already. --Client setup is up to Nexus VR Character Model or the game creator. if Replicated...
110
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/place/ServerScriptService/TestLoader.server.luau
luau
.luau
--[[ TheNexusAvenger Loads Nexus VR Backpack on the server for testing. --]] local TOTAL_TEST_TOOLS = 9 local ServerScriptService = game:GetService("ServerScriptService") local StarterPack = game:GetService("StarterPack") local HttpService = game:GetService("HttpService") --Create the test tools. for i = 1, TOTAL...
235
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/place/StarterPlayerScripts/TestLoader.client.luau
luau
.luau
--[[ TheNexusAvenger Loads Nexus VR Backpack on the client for testing. --]] local Workspace = game:GetService("Workspace") local ReplicatedStorage = game:GetService("ReplicatedStorage") local GuiService = game:GetService("GuiService") local RunService = game:GetService("RunService") local UserInputService = game:Get...
542
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/CharacterBackpack.luau
luau
.luau
--Backpack associated with a character. --!strict local PROCESSED_KEYCODES_WHITELIST = { [Enum.KeyCode.ButtonL3] = true, --Left thumbstick. [Enum.KeyCode.ButtonR3] = true, --Right thumbstick. } local VRService = game:GetService("VRService") local Workspace = game:GetService("Workspace") local Players = game:G...
1,438
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/State/Inventory.luau
luau
.luau
--Simple state manager for the tools the player has access to. --!strict local Inventory = {} Inventory.__index = Inventory export type Inventory = { Containers: {Instance}, Tools: {BackpackItem}, Events: {RBXScriptConnection}, ToolsChangedEvent: BindableEvent, ToolsChanged: RBXScriptSignal, } & t...
644
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/UI/Backpack3D.luau
luau
.luau
--Class for the backpack in 3D space. --!strict local UI_PHYSICAL_SCALE = 0.5 local TweenService = game:GetService("TweenService") local ToolGrid = require(script.Parent:WaitForChild("ToolGrid")) local Inventory = require(script.Parent.Parent:WaitForChild("State"):WaitForChild("Inventory")) local Backpack3D = {} Ba...
1,501
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/UI/ToolGrid.luau
luau
.luau
--Hexagon grid for showing tools. --!strict local ToolIcon = require(script.Parent:WaitForChild("ToolIcon")) local ToolGrid = {} ToolGrid.__index = ToolGrid export type ToolGrid = { IconGroups: {{ToolIcon.ToolIcon}}, AdornFrame: Frame, FocusedIcon: ToolIcon.ToolIcon?, } & typeof(setmetatable({}, ToolGrid...
1,190
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/UI/ToolIcon.luau
luau
.luau
--Class for a tool icon. --!strict local ToolIcon = {} ToolIcon.__index = ToolIcon export type ToolIcon = { Focused: boolean, Players: Players, TweenService: TweenService, RelativePositionX: number, RelativePositionY: number, Background: ImageLabel, ToolText: TextLabel, ToolImage: Imag...
1,395
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/init.luau
luau
.luau
--Main module and API for Nexus VR Backpack. --!strict local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local CharacterBackpack = require(script:WaitForChild("CharacterBackpack")) local NexusVRBackpack = {} NexusVRBackpack.Enabled = true export type NexusVRBa...
883
wrello/Plums
wrello-Plums-16119f5/Plums/PlumsClient/ClientPlum.luau
luau
.luau
--[[ comdoc "Client Plum" 3 LastUpdated [ Properties (readonly) ] .Data : {} The data table of the plum. .Clients : {Player} The array of clients that have been added to the plum. .ClassName : string The class name that the plum was created with. .Id : number The ...
1,775
wrello/Plums
wrello-Plums-16119f5/Plums/PlumsClient/init.luau
luau
.luau
--[[ comdoc "Plums Client" 1 LastUpdated [ Methods ] :Init() Initializes the library. Must do once on client + server before anything else. :AwaitInitialized() Yields until the library has been initialized (waits for an ':Init()' call). :WaitForPlum(plumId : number, debugTag : string?) ...
2,189
wrello/Plums
wrello-Plums-16119f5/Plums/PlumsServer/init.luau
luau
.luau
--[[ comdoc "Plums Server" 2 LastUpdated [ Constructor ] .new(plumClassName : string, plumData : {}?) -> Plum Creates a new plum of 'plumClassName' with plum.Data set to 'plumData'. ```lua local playerPlum = Plums.new("Player", { Money = 100 }):AddClients(player) -- This method chaining appro...
1,180
wrello/Plums
wrello-Plums-16119f5/Plums/Util/Await.luau
luau
.luau
-- v1.5.2 local Signal = require(script.Parent.Signal) type EventWithSettingsType = {} -- {RBXScriptSignal, WinnerKey?, ...any?} type TimeoutType = (number | RBXScriptSignal)? local DEBUG_PRINTS = false local WINNER_KEY_FLAG = "winner key" local ALL_ARGUMENTS_CHECK_FLAG = "all arguments check" local removed_from_ga...
1,435
wrello/Plums
wrello-Plums-16119f5/Plums/Util/ClientReady.luau
luau
.luau
-- v3.0.0 local RunService = game:GetService("RunService") local Promise = require(script.Parent.Promise) local Await = require(script.Parent.Await) local remoteEvent if RunService:IsClient() then remoteEvent = script:WaitForChild("RemoteEvent") else remoteEvent = Instance.new("RemoteEvent", script) end local DEF...
1,406
wrello/Plums
wrello-Plums-16119f5/Plums/Util/Maid.luau
luau
.luau
-- v2.1.0 local function CustomAssert(check, ...) if not check then print("ERROR:", ...) error("read above message for information") end end -- Unsafe because it yields without a pcall local function unsafeCleanThing(thing) local type = typeof(thing) if type == "Instance" then if thing:IsA("AnimationTrack"...
921
wrello/Plums
wrello-Plums-16119f5/Plums/Util/PathUtil.luau
luau
.luau
local PathUtil = {} function PathUtil.getPathsTo(parent, needle, results, currentPath, visited) results = results or {} visited = visited or {} if visited[parent] then return results end visited[parent] = true for k, v in parent do local newPath = (currentPath and currentPath .. '.' or "") .. k if v == ...
736
wrello/Plums
wrello-Plums-16119f5/Plums/Util/PlumInternal.luau
luau
.luau
local RunService = game:GetService("RunService") local PathUtil = require(script.Parent.PathUtil) local PlumValueChangedUtil = require(script.Parent.PlumValueChangedUtil) local PlumsCache = require(script.Parent.PlumsCache) local EMPTY_FN = function() end local PlumInternal = {} PlumInternal.__index = PlumInternal ...
2,052
wrello/Plums
wrello-Plums-16119f5/Plums/Util/PlumValueChangedUtil.luau
luau
.luau
local PathUtil = require(script.Parent.PathUtil) local PlumValueChangedUtil = {} local function collectEvents(t, path, out, newValue, oldValue) local signal = t._signal if signal then if newValue ~= oldValue then table.insert(out, {signal, newValue, oldValue}) end end for k, v in t do if k == "_signal" ...
682
wrello/Plums
wrello-Plums-16119f5/Plums/Util/PlumsCache.luau
luau
.luau
local Signal = require(script.Parent.Signal) local idToPlum = {} local classNameToCache = {} local function getClassNameCache(className) local classNameCache = classNameToCache[className] if not classNameCache then classNameCache = {} classNameToCache[className] = classNameCache end return classNameCache en...
314
wrello/Plums
wrello-Plums-16119f5/Plums/Util/Signal.luau
luau
.luau
-- v2.2.1 local Connection = {} Connection.__index = Connection function Connection.new(signal, handler, isOnce) return setmetatable({ _signal = signal, _isOnce = isOnce, Handler = handler, Connected = true, }, Connection) end function Connection:Disconnect() self.Connected = false local foundIdx = t...
746
wrello/Plums
wrello-Plums-16119f5/Plums/Util/SquashCodec.luau
luau
.luau
local Squash = require(script.Parent.Squash) local BufferEncoder = require(script.Parent.BufferEncoder) -- Ser local SQ_CURSOR = Squash.cursor local SQ_TO_BUF = Squash.tobuffer local SQ_STR_SER = Squash.string().ser local SQ_STR_ARR_SER = Squash.array(Squash.string()).ser local SQ_U32_SER = Squash.uint(4).ser -- Des ...
545
wrello/Plums
wrello-Plums-16119f5/Plums/Util/Types.luau
luau
.luau
--!strict type EventConnecterType<T> = { -- Methods Wait: (self: EventConnecterType<T>, timeout: number?) -> (...any | "timeout"), Connect: (self: EventConnecterType<T>, handler: T) -> RBXScriptConnection, Once: (self: EventConnecterType<T>, handler: T) -> RBXScriptConnection, } type EventObserverType<T> = { -- M...
1,267
wrello/Plums
wrello-Plums-16119f5/Plums/Util/t.luau
luau
.luau
-- t: a runtime typechecker for Roblox local t = {} function t.type(typeName) return function(value) local valueType = type(value) if valueType == typeName then return true else return false, string.format("%s expected, got %s", typeName, valueType) end end end function t.typeof(typeName) return fun...
7,110
teribu/Everforest
teribu-Everforest-968dd45/src/components/element.luau
luau
.luau
local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal return function(Title, Parent, Hover, Condition) local Element = { Hoving = false, Condition = Condition or function() return true end } Elem...
1,085
teribu/Everforest
teribu-Everforest-968dd45/src/components/notification.luau
luau
.luau
local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal local Notification = {} function Notification:Init(GUI) Notification.Holder = New("Frame", { Position = UDim2.new(1, -30, 0, 86), Size = UDim2.new(0,...
1,842
teribu/Everforest
teribu-Everforest-968dd45/src/components/tab.luau
luau
.luau
local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal local TabModule = { Window = nil, SelectedTab = 1, Tabs = {}, Containers = {}, Limits = {}, IsAutoScrolling = false, TotalTabs = 0 } local fu...
3,614
teribu/Everforest
teribu-Everforest-968dd45/src/components/top.luau
luau
.luau
local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal return function(Config) local Top = {} Top.Button = New("TextButton", { Text = "", Size = UDim2.new(1, 0, 1, 0), Position = UDim2.new(0, ...
1,073
teribu/Everforest
teribu-Everforest-968dd45/src/components/window.luau
luau
.luau
local Tween = require("../modules/tween") local Creator = require("../modules/creator") local New = Creator.New local AddSignal = Creator.AddSignal return function(Config) local Window = { State = false, TabWidth = 0, SidebarWidth = 0, Keybind = Config.Keybind } Window.Tab...
2,924
teribu/Everforest
teribu-Everforest-968dd45/src/elements/button.luau
luau
.luau
local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal local Element = {} Element.__index = Element Element.__type = "Button" function Element:New(Config) assert(Config.Title, "Button - Missing Title") local Button = { C...
1,057
teribu/Everforest
teribu-Everforest-968dd45/src/elements/dropdown.luau
luau
.luau
local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal local Element = {} Element.__index = Element Element.__type = "Dropdown" function Element:New(Flag, Config) local Library = self.Library local Dropdown = { ...
3,326
teribu/Everforest
teribu-Everforest-968dd45/src/elements/init.luau
luau
.luau
local Elements = {} for _, module in script:GetChildren() do if module:IsA("ModuleScript") and module ~= script then local element = require(module) Elements[element.__type] = element end end return Elements
53
teribu/Everforest
teribu-Everforest-968dd45/src/elements/input.luau
luau
.luau
local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal local Element = {} Element.__index = Element Element.__type = "Input" function Element:New(Flag, Config) local Library = self.Library assert(Config.Title, "Input...
601
teribu/Everforest
teribu-Everforest-968dd45/src/elements/paragraph.luau
luau
.luau
local Creator = require("../modules/creator") local Element = {} Element.__index = Element Element.__type = "Paragraph" function Element:New(Config) assert(Config.Title, "Paragraph - Missing Title") local Paragraph = require("../components/element")(Config.Title, self.Container, false) Paragraph.Root.Bac...
207
teribu/Everforest
teribu-Everforest-968dd45/src/elements/section.luau
luau
.luau
local Creator = require("../modules/creator") local New = Creator.New local Element = {} Element.__index = Element Element.__type = "Section" function Element:New(Config) assert(Config.Title, "Section - Missing Title") local Section = {} Section.Title = New("TextLabel", { FontFace = Font.new("rb...
392
teribu/Everforest
teribu-Everforest-968dd45/src/elements/slider.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal local Element = {} Element.__index = Element Element.__type = "Slider" function Element:New(Idx, Config) lo...
2,274
teribu/Everforest
teribu-Everforest-968dd45/src/elements/toggle.luau
luau
.luau
local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal local Element = {} Element.__index = Element Element.__type = "Toggle" function Element:New(Flag, Config) local Library = self.Library assert(Config.Title, "Togg...
1,052
teribu/Everforest
teribu-Everforest-968dd45/src/modules/creator.luau
luau
.luau
local Themes = require("../themes") local Creator = { Registry = {}, Signals = {}, DefaultProperties = { ScreenGui = { ResetOnSpawn = false, ZIndexBehavior = Enum.ZIndexBehavior.Sibling, }, Frame = { BackgroundColor3 = Color3.new(1, 1, 1), ...
1,138
teribu/Everforest
teribu-Everforest-968dd45/src/modules/icons.luau
luau
.luau
-- This file was @generated by Tarmac. It is not intended for manual editing. return { assets = { ["lucide-accessibility"] = "rbxassetid://10709751939", ["lucide-activity"] = "rbxassetid://10709752035", ["lucide-air-vent"] = "rbxassetid://10709752131", ["lucide-airplay"] = "rbxasseti...
16,848
teribu/Everforest
teribu-Everforest-968dd45/src/modules/presets.luau
luau
.luau
return { Default = { Duration = 0.1, EasingStyle = Enum.EasingStyle.Exponential, EasingDirection = Enum.EasingDirection.Out }, }
35
teribu/Everforest
teribu-Everforest-968dd45/src/modules/tween.luau
luau
.luau
local TweenService = game:GetService("TweenService") local Creator = require("./creator") local AddSignal = Creator.AddSignal local Tween = { Presets = require("./presets"), InfoCache = {}, RunningTweens = {} } function Tween.ParseEnum(EnumType, Value) if typeof(Value) == "EnumItem" then return Value ...
1,169
teribu/Everforest
teribu-Everforest-968dd45/src/themes/dark.luau
luau
.luau
return { Name = "Dark", Notification = Color3.fromRGB(61, 57, 70), NotificationBorder = Color3.fromRGB(222, 208, 255), NotificationTitle = Color3.fromRGB(218, 213, 233), Top = Color3.fromRGB(10, 10, 10), TopTitle = Color3.fromRGB(255, 255, 255), TopDescription = Color3.fromRGB(255, 255, 25...
1,022
teribu/Everforest
teribu-Everforest-968dd45/src/themes/init.luau
luau
.luau
local Themes = { Names = { "Dark" } } for _, Theme in script:GetChildren() do local Required = require(Theme) Themes[Required.Name] = Required end return Themes
45
teribu/Everforest
teribu-Everforest-968dd45/tests/test.client.luau
luau
.luau
local Everforest = require(game:GetService("ReplicatedStorage"):WaitForChild("Everforest")) local Window = Everforest:CreateWindow({ Top = { Title = "Everforest", Description = "Powerful scripting utility", User = { Icon = "rbxassetid://138895252616906", Name = game....
2,186
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Builds/Plugin.luau
luau
.luau
--!strict local RunService = game:GetService("RunService") local pluginRoot = script:FindFirstAncestor("PluginRoot") local UserInterface = require(pluginRoot.Main.UserInterface) local Plugin = {} -- Public function Plugin.build(plugin: Plugin) if RunService:IsStudio() and RunService:IsEdit() then local unmount =...
101
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Components/Viewers/LegacyViewSelector.luau
luau
.luau
--!strict local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) type AxisProps = { Text: string, Color: Color3, Vector: Vector3, Thickness: UDim, ZIndex: number, } local function Axis(props: AxisProps) local x, y = props.Vector.X, props.Vector.Y local rotat...
756
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Hooks/init.luau
luau
.luau
--!strict return { useConstant = require(script.useConstant), useRefProperty = require(script.useRefProperty), }
25
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Hooks/useConstant.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local function useConstant<T...>(create: () -> T...): T... local ref = React.useRef(nil :: any) if not ref.current then ref.current = { packed = table.pack(create()) } end return table.unpack(ref.current....
84
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Hooks/useRefProperty.luau
luau
.luau
--!strict local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local function useRefProperty<T>(ref: { current: Instance? }, property: string, default: T) local value, setValue = React.useState(default) React.useEffect(function() if not ref.current then se...
156
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Stories/Helpers/CreateStory.luau
luau
.luau
--!strict local pluginRoot = script:FindFirstAncestor("PluginRoot") local ReactRoblox = require(pluginRoot.Packages.ReactRoblox) local React = require(pluginRoot.Packages.React) local function createStory(component: React.FC<any>) return function(target: Frame) local element = React.createElement(component, {}) ...
123
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Stories/Helpers/Stories.storybook.luau
luau
.luau
--!strict local pluginRoot = script:FindFirstAncestor("PluginRoot") local ReactRoblox = require(pluginRoot.Packages.ReactRoblox) local React = require(pluginRoot.Packages.React) return { name = "BetterViewSelector", storyRoots = { script.Parent.Parent }, react = React, reactRoblox = ReactRoblox, }
76
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Stories/LegacyViewer.story.luau
luau
.luau
--!strict local RunService = game:GetService("RunService") :: RunService local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local stories = script:FindFirstAncestor("Stories") local CreateStory = require(stories.Helpers.CreateStory) local uiRoot = script:FindF...
357
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/init.luau
luau
.luau
--!strict local RunService = game:GetService("RunService") local StudioService = game:GetService("StudioService") :: StudioService local SelectionService = game:GetService("Selection") :: Selection local pluginRoot = script:FindFirstAncestor("PluginRoot") local ReactRoblox = require(pluginRoot.Packages.ReactRoblox) l...
1,034
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/LICENSE.luau
luau
.luau
--[[ MIT License Copyright (c) 2024 Redon Tech Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub...
238
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/apis/client.luau
luau
.luau
--[[ _____ _ _______ _ | __ \ | | |__ __| | | | |__) | ___ __| | ___ _ __ | | ___ ___ | |__ | _ / / _ \ / _ | / _ \ | _ \ | | / _ \ / __| | _ \ | | \ \ | __/ | (_| | | ...
851
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/apis/server.luau
luau
.luau
--[[ _____ _ _______ _ | __ \ | | |__ __| | | | |__) | ___ __| | ___ _ __ | | ___ ___ | |__ | _ / / _ \ / _ | / _ \ | _ \ | | / _ \ / __| | _ \ | | \ \ | __/ | (_| | | ...
820
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/dev/client.client.luau
luau
.luau
local localPlayer = game.Players.LocalPlayer local ScreenGui = localPlayer:WaitForChild("PlayerGui"):WaitForChild("ScreenGui") local template = ScreenGui:WaitForChild("Frame"):WaitForChild("template") template.Visible = false for i, v in pairs(game.Teams:GetChildren()) do local clone = template:Clone() clone.Name = ...
129
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/dev/server.server.luau
luau
.luau
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player: Player, teamName: string) player.Team = game.Teams[teamName] player:LoadCharacter() end)
39
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/settings.luau
luau
.luau
--[[ _____ _ _______ _ | __ \ | | |__ __| | | | |__) | ___ __| | ___ _ __ | | ___ ___ | |__ | _ / / _ \ / _ | / _ \ | _ \ | | / _ \ / __| | _ \ | | \ \ | __/ | (_| | | ...
1,279
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/client/audio.luau
luau
.luau
-- Redon Tech Radio Systen local audio = {} audio.__index = audio function audio.new(main: { any }, assetId: string | boolean?, looped: boolean) local data = { main = main, sound = Instance.new("Sound"), isEnabled = typeof(assetId) == "string", } local self = setmetatable(data, audio) self.sound.SoundId = ...
167
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/client/components/message.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local shared = ReplicatedStorage:WaitForChild("radioShared") local Fusion = require(shared:WaitForChild("Fusion")) local util = require(shared:WaitForChild("util")) local New, Children = Fusion.New, Fusion.Children return function(props) local message: F...
1,279
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/client/components/messages.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local shared = ReplicatedStorage:WaitForChild("radioShared") local Fusion = require(shared:WaitForChild("Fusion")) local New, Children, OnEvent = Fusion.New, Fusion.Children, Fusion.OnEvent return function(props) local messages messages = New("Scrolling...
393
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/client/components/radioChannel.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local shared = ReplicatedStorage:WaitForChild("radioShared") local Fusion = require(shared:WaitForChild("Fusion")) local New, Children, Computed, OnEvent = Fusion.New, Fusion.Children, Fusion.Computed, Fusion.OnEvent return function(props) return New("Te...
430
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/client/components/radioChannels.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local shared = ReplicatedStorage:WaitForChild("radioShared") local Fusion = require(shared:WaitForChild("Fusion")) local New, Children, OnEvent = Fusion.New, Fusion.Children, Fusion.OnEvent return function(props) local frame: Frame? frame = New("Frame")...
402
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/client/components/radioTopbar.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local shared = ReplicatedStorage:WaitForChild("radioShared") local Fusion = require(shared:WaitForChild("Fusion")) local New, Children, OnEvent = Fusion.New, Fusion.Children, Fusion.OnEvent return function(props) return New("Frame")({ Name = "Topbar", ...
950
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/client/main.luau
luau
.luau
-- Redon Tech Radio System local main = {} main.__index = main local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local UserInputService = game:GetService("UserInputService") local TextChatService = game:GetService("TextChatService") local localPlayer = Players....
5,300
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/client/runner.client.luau
luau
.luau
-- Redon Tech Radio System local main = script.Parent:WaitForChild("main") local success, result = pcall(function() return require(main).init() end) if not success then warn("[RTRS Client]: Client could not start\n", result, "\nTraceback:\n", debug.traceback()) end
69
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/init.server.luau
luau
.luau
--[[ _____ _ _______ _ | __ \ | | |__ __| | | | |__) | ___ __| | ___ _ __ | | ___ ___ | |__ | _ / / _ \ / _ | / _ \ | _ \ | | / _ \ / __| | _ \ | | \ \ | __/ | (_| | | ...
496
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/server/channel.luau
luau
.luau
-- Redon Tech Radio System type SystemMessage = { text: string, headerText: string?, backgroundColor3: Color3?, icon: string?, iconColor3: Color3?, iconRounded: boolean?, sideText: string?, sideAccent: Color3?, } local channel = {} channel.__index = channel local ReplicatedStorage = game:GetService("Replicat...
1,756
Redon-Tech/radio-system
Redon-Tech-radio-system-b267e79/src/system/server/main.luau
luau
.luau
-- Redon Tech Radio System local main = {} main.__index = main local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local shared = ReplicatedStorage:WaitForChild("radioShared") local systemSettings = require(shared:WaitForChild("settings")) local comm = require(sh...
1,196