repo
stringclasses
302 values
file_path
stringlengths
18
241
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
76
697k
tokens
int64
10
271k
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/texturePicker/modals/importInstances.luau
luau
.luau
local Selection = game:GetService("Selection") local fusion = require("@packages/fusion") local Children = fusion.Children local Cleanup = fusion.Cleanup local New = fusion.New local Computed = fusion.Computed local Value = fusion.Value local fusionComponents = require("@packages/fusionComponents") local text = fusi...
2,579
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/texturePicker/modals/importJson.luau
luau
.luau
local HttpService = game:GetService("HttpService") local Selection = game:GetService("Selection") local fusion = require("@packages/fusion") local Children = fusion.Children local Cleanup = fusion.Cleanup local New = fusion.New local Computed = fusion.Computed local Value = fusion.Value local fusionComponents = requ...
2,172
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/texturePicker/modals/moveItem.luau
luau
.luau
local fusion = require("@packages/fusion") local New = fusion.New local Children = fusion.Children local Value = fusion.Value local fusionComponents = require("@packages/fusionComponents") local text = fusionComponents.base.text local button = fusionComponents.common.button local frame = fusionComponents.base.frame l...
1,003
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/texturePicker/textureImage/flipbook.luau
luau
.luau
local AssetService = game:GetService("AssetService") local RunService = game:GetService("RunService") local fusion = require("@packages/fusion") local Children = fusion.Children local Cleanup = fusion.Cleanup local Hydrate = fusion.Hydrate local New = fusion.New local Computed = fusion.Computed local Value = fusion.V...
734
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/texturePicker/textureImage/init.luau
luau
.luau
local flipbook = require("./flipbook") local texture = require("./texture") type props = { Image: string, FlipbookMode: nil | "2x2" | "4x4" | "8x8", } local function textureImage(props: props) if props.FlipbookMode then -- for some reason props.FlipbookMode does not evaluate to not nil after this, so we typecast...
116
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/texturePicker/textureImage/texture.luau
luau
.luau
local AssetService = game:GetService("AssetService") local fusion = require("@packages/fusion") local Children = fusion.Children local Hydrate = fusion.Hydrate local New = fusion.New local Computed = fusion.Computed local Value = fusion.Value local fusionUtils = require("@packages/fusionUtils") local propertyProvide...
280
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/texturePicker/treeButton.luau
luau
.luau
local fusion = require("@packages/fusion") local Children = fusion.Children local Cleanup = fusion.Cleanup local New = fusion.New local Computed = fusion.Computed local Observer = fusion.Observer local Value = fusion.Value local fusionComponents = require("@packages/fusionComponents") local menuEntry = fusionComponen...
1,620
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/components/standaloneScroller.luau
luau
.luau
-- this component exists due to the necessity of rendering components conditionally based on a scrolling frame, while they don't fit into a grid/list/whatever -- it's important to realize that this component should not be used for just anything, but only things where the tradeoff is significant enough to warrant the ex...
2,024
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/components/viewport2D.luau
luau
.luau
local fusion = require("@packages/fusion") local Children = fusion.Children local Hydrate = fusion.Hydrate local New = fusion.New local Out = fusion.Out local Clean = fusion.cleanup local Computed = fusion.Computed local ForValues = fusion.ForValues local Value = fusion.Value local fusionUtils = require("@packages/fu...
1,039
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/init.server.luau
luau
.luau
local Selection = game:GetService("Selection") local fusion = require("@packages/fusion") local Children = fusion.Children local New = fusion.New local Value = fusion.Value local fusionUtils = require("@packages/fusionUtils") local topLayerProvider = fusionUtils.topLayerProvider local app = require("@components/app...
369
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/lib/classDataHandler/classes/container.luau
luau
.luau
local class = {} local fusionUtils = require("@packages/fusionUtils") local onDestroy = fusionUtils.onDestroy local input = require("@components/propertyFields/input") local scaleUtils = require("@src/lib/scaleUtils") function class.is(instance: Instance) return instance:IsA("Attachment") or instance:IsA("Part") o...
345
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/lib/classDataHandler/classes/particleEmitter.luau
luau
.luau
local class = {} local fusionUtils = require("@packages/fusionUtils") local onDestroy = fusionUtils.onDestroy local checkbox = require("@components/propertyFields/checkbox") local input = require("@components/propertyFields/input") local slider = require("@components/propertyFields/slider") local range = require("@co...
3,360
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/lib/classDataHandler/classes/trail.luau
luau
.luau
local class = {} local fusionUtils = require("@packages/fusionUtils") local onDestroy = fusionUtils.onDestroy local checkbox = require("@components/propertyFields/checkbox") local input = require("@components/propertyFields/input") local slider = require("@components/propertyFields/slider") local object = require("@c...
1,648
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/lib/classDataHandler/init.luau
luau
.luau
local classDataHandler = {} local fusion = require("@packages/fusion") local theme = require("@src/theme") local classMap: { [string]: { is: (instance: Instance) -> boolean, properties: { [number]: property | category, }, emit: (instance: Instance) -> nil, }, } = nil :: any local function setup() loc...
438
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/lib/historyHandler.luau
luau
.luau
local ChangeHistoryService = game:GetService("ChangeHistoryService") return function(identifier: string, callback: () -> any): any local recording = ChangeHistoryService:TryBeginRecording(identifier) -- we want to still run the callback even if we can't record the changes local success, result, _check = pcall(call...
188
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/lib/scaleUtils.luau
luau
.luau
local scaleUtils = {} function scaleUtils.scaleNumber(number: number, scale: number): number return number * scale end function scaleUtils.scaleNumberSequence(numberSequence: NumberSequence, scale: number): NumberSequence local newKeypoints = {} for _, keypoint in numberSequence.Keypoints do table.insert( ne...
278
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/lib/settingsManager.luau
luau
.luau
-- primarily exists to wrap around Get/SetSetting so we don't have to get a new plugin each time -- and also turns its values into reactive values local settingsManager = {} local fusion = require("@packages/fusion") local Value = fusion.Value local plugin = script:FindFirstAncestorWhichIsA("Plugin") if __DEV__ then...
354
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/stories/App.story.luau
luau
.luau
local fusionComponents = require("@packages/fusionComponents") local storyBase = fusionComponents.utility.storyBase local fusion = require("@packages/fusion") local Children = fusion.Children local New = fusion.New local Clean = fusion.cleanup local Value = fusion.Value local theme = require("@src/theme") local hist...
336
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/stories/AppTopbar.story.luau
luau
.luau
local fusionComponents = require("@packages/fusionComponents") local storyBase = fusionComponents.utility.storyBase local fusion = require("@packages/fusion") local Children = fusion.Children local New = fusion.New local Value = fusion.Value local appTopbar = require("@src/components/appTopbar") return { summary =...
328
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/stories/AppWidget.story.luau
luau
.luau
local fusion = require("@packages/fusion") local Value = fusion.Value local theme = require("@src/theme") local historyHandler = require("@src/lib/historyHandler") local generateInstance = require("./generateInstance") local app = require("@src/components/app") return { summary = "A full representation of the plu...
170
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/stories/fields/checkbox.story.luau
luau
.luau
local fusionComponents = require("@packages/fusionComponents") local storyBase = fusionComponents.utility.storyBase local fusion = require("@packages/fusion") local Value = fusion.Value local listOption = require("@components/listOption") local checkbox = require("@components/propertyFields/checkbox") local instance...
216
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/stories/fields/colorSequence/field.story.luau
luau
.luau
local fusionComponents = require("@packages/fusionComponents") local storyBase = fusionComponents.utility.storyBase local fusion = require("@packages/fusion") local Value = fusion.Value local listOption = require("@components/listOption") local colorSequence = require("@components/propertyFields/colorSequence") loca...
385
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/stories/fields/colorSequence/widget.story.luau
luau
.luau
local fusionComponents = require("@packages/fusionComponents") local storyBase = fusionComponents.utility.storyBase local fusion = require("@packages/fusion") local Children = fusion.Children local New = fusion.New local Value = fusion.Value local colorSequenceEditor = require("@components/propertyFields/colorSequen...
365
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/stories/fields/dropdown.story.luau
luau
.luau
local fusionComponents = require("@packages/fusionComponents") local storyBase = fusionComponents.utility.storyBase local fusion = require("@packages/fusion") local Value = fusion.Value local listOption = require("@components/listOption") local dropdown = require("@components/propertyFields/enumDropdown") local inst...
215
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/stories/fields/input.story.luau
luau
.luau
local fusionComponents = require("@packages/fusionComponents") local storyBase = fusionComponents.utility.storyBase local fusion = require("@packages/fusion") local Value = fusion.Value local listOption = require("@components/listOption") local input = require("@components/propertyFields/input") local instance = Ins...
212
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/stories/fields/numberSequence/field.story.luau
luau
.luau
local fusionComponents = require("@packages/fusionComponents") local storyBase = fusionComponents.utility.storyBase local fusion = require("@packages/fusion") local Value = fusion.Value local listOption = require("@components/listOption") local numberSequence = require("@components/propertyFields/numberSequence") lo...
291
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/stories/fields/numberSequence/widget.story.luau
luau
.luau
local fusionComponents = require("@packages/fusionComponents") local storyBase = fusionComponents.utility.storyBase local fusion = require("@packages/fusion") local Value = fusion.Value local numberSequenceWidget = require("@components/propertyFields/numberSequence/editor") local theme = require("@src/theme") local...
214
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/stories/fields/slider.story.luau
luau
.luau
local fusionComponents = require("@packages/fusionComponents") local storyBase = fusionComponents.utility.storyBase local fusion = require("@packages/fusion") local Value = fusion.Value local listOption = require("@components/listOption") local slider = require("@components/propertyFields/slider") local instance = I...
237
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/stories/fields/texturePicker/field.story.luau
luau
.luau
local fusionComponents = require("@packages/fusionComponents") local storyBase = fusionComponents.utility.storyBase local fusion = require("@packages/fusion") local Value = fusion.Value local listOption = require("@components/listOption") local texturePicker = require("@components/propertyFields/texturePicker") loca...
241
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/stories/fields/texturePicker/widget.story.luau
luau
.luau
local fusionComponents = require("@packages/fusionComponents") local storyBase = fusionComponents.utility.storyBase local fusion = require("@packages/fusion") local Value = fusion.Value local texturePickerWidget = require("@components/propertyFields/texturePicker/editor") local generateInstance = require("@src/stori...
199
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/stories/generateInstance.luau
luau
.luau
return function() local part = Instance.new("Part") part.TopSurface = Enum.SurfaceType.Smooth part.Anchored = true part.Transparency = 1 part.CFrame = CFrame.new(0, 2, 0) part.Size = Vector3.new(1, 1, 1) part.CanCollide = false part.BrickColor = BrickColor.new("Institutional white") local attachment = Instanc...
482
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/theme/components/App/default/default.luau
luau
.luau
local tailwind = require("@packages/tailwind") return function(themeName: string) return { Base = { TopbarBackground = themeName == "Dark" and tailwind.neutral[800] or tailwind.neutral[50], TreeBackground = { color = themeName == "Dark" and tailwind.neutral[800] or tailwind.neutral[50], transparency =...
199
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/theme/components/AppTopbarItem/default/default.luau
luau
.luau
local tailwind = require("@packages/tailwind") return function(themeName: string) return { Base = { Text = themeName == "Dark" and tailwind.neutral[100] or tailwind.neutral[900], }, Hover = { Background = themeName == "Dark" and tailwind.neutral[750] or tailwind.neutral[200], Text = themeName == "Dark"...
272
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/theme/components/InstanceTreeItem/default/default.luau
luau
.luau
local tailwind = require("@packages/tailwind") return function(themeName: string) return { Base = { Text = themeName == "Dark" and tailwind.neutral[100] or tailwind.neutral[900], SecondaryText = themeName == "Dark" and tailwind.neutral[500] or tailwind.neutral[500], ToggleButton = themeName == "Dark" and t...
162
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/theme/components/NumberSequenceEditor/default/default.luau
luau
.luau
local tailwind = require("@packages/tailwind") return function(themeName: string) return { Base = { Title = themeName == "Dark" and tailwind.neutral[100] or tailwind.neutral[900], Description = themeName == "Dark" and tailwind.neutral[200] or tailwind.neutral[700], Line = themeName == "Dark" and tailwind.n...
158
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/theme/components/ScrollingFrame/default/default.luau
luau
.luau
local tailwind = require("@packages/tailwind") return function(themeName: string) return { Base = { ScrollBar = themeName == "Dark" and tailwind.neutral[700] or tailwind.neutral[300], ScrollBarBackground = themeName == "Dark" and tailwind.neutral[785] or tailwind.neutral[50], Stroke = themeName == "Dark" a...
110
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/theme/components/TexturePicker/default/default.luau
luau
.luau
local tailwind = require("@packages/tailwind") return function(themeName: string) return { Base = { Title = themeName == "Dark" and tailwind.neutral[100] or tailwind.neutral[900], Description = themeName == "Dark" and tailwind.neutral[200] or tailwind.neutral[700], Line = themeName == "Dark" and tailwind.n...
198
VirtualButFake/vfx-editor
VirtualButFake-vfx-editor-faa908b/src/theme/init.luau
luau
.luau
local StudioService = game:GetService("StudioService") local Studio = settings().Studio local themeFramework = require("@packages/themeFramework") local fusion = require("@packages/fusion") local Clean = fusion.cleanup local Computed = fusion.Computed local Value = fusion.Value export type color = themeFramework.colo...
488
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Client/InterpolationHandler.luau
luau
.luau
--[[ A shout-out to @Mephistopheles for their implementation of the replication buffer. ]] local Players = game:GetService('Players') local ReplicatedStorage = game:GetService('ReplicatedStorage') local RunService = game:GetService('RunService') local BetterReplication = script.Parent.Parent local localPlayer = Pl...
1,330
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Client/PositionCache.luau
luau
.luau
-- A client-sided utility that you can use to access non-interpolated (!!!) player positions return {} :: {[Player]: CFrame}
30
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Client/ReplicationHandler.luau
luau
.luau
local Players = game:GetService('Players') local BetterReplication = script.Parent.Parent local Config = require(BetterReplication.Config) local BufferUtils = require(BetterReplication.Lib.BufferUtils) local Utils = require(BetterReplication.Lib.Utils) local FromClient = BetterReplication.Remotes.FromClient local pl...
484
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Config.luau
luau
.luau
local Config = { -- not recommended to change these values at runtime -- from how many studs should players not be replicated with BetterReplication anymore? proximityThreshold = 100, -- default: 100 -- ship the whole cframe orientation instead of only the yaw axis to make the humanoidrootpart interpolate accur...
231
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Example/ServerScriptService/SanityChecker.server.luau
luau
.luau
local BetterReplication = require(game.ReplicatedStorage.BetterReplication.Interface) BetterReplication.start() BetterReplication.bindSanityCheck(function(data) print(data.t, data.c) return true end)
44
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Example/StarterCharacterScripts/Interpolation.client.luau
luau
.luau
local BetterReplication = require(game.ReplicatedStorage.BetterReplication.Interface) BetterReplication.startReplication()
24
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Example/StarterPlayerScripts/Replication.client.luau
luau
.luau
local BetterReplication = require(game.ReplicatedStorage.BetterReplication.Interface) BetterReplication.startInterpolater()
25
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Lib/BufferUtils.luau
luau
.luau
type from_client_packet = { t: number, c: CFrame } type to_client_packet = { t: number, p: number, c: CFrame } type register_identifier = { p: string, id: number } local writef16, readf16 do local EXPONENT_BIAS = 14 local SIGN_OFFSET = 2 ^ 15 local EXPONENT_OFFSET = 2 ^ 10 local MANTISSA_OFFSET = 2 ^ 10 ...
2,282
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Lib/Snapshots.luau
luau
.luau
-- Implementation by Pogo. Used for the replication buffer implementation. --!strict local clock = os.clock local Snapshot = {} Snapshot.__index = Snapshot type datetime = number export type Snapshot = { -- fields _subject: Player?, _cache: { { o: CFrame, at: datetime } }, -- methods pushAt: (self: ...
758
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Lib/Utils.luau
luau
.luau
-- Thanks Tazmondo for this util suggestion local RunService = game:GetService('RunService') local Utils = {} function Utils.FrequencyPostSimulation(callback: (number) -> (), frequency: number) local last = time() frequency = 1/frequency return RunService.PostSimulation:Connect(function() local dt = time() - las...
177
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Rig/Animate.client.luau
luau
.luau
-- humanoidAnimateR15Moods.lua local Character = script.Parent local Humanoid = Character:WaitForChild("Humanoid") local pose = "Standing" local userNoUpdateOnLoopSuccess, userNoUpdateOnLoopValue = pcall(function() return UserSettings():IsUserFeatureEnabled("UserNoUpdateOnLoop") end) local userNoUpdateOnLoop = userNo...
6,319
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Server/ReplicationHandler.luau
luau
.luau
--!strict local Players = game:GetService("Players") local BetterReplication = script.Parent.Parent local BufferUtils = require(BetterReplication.Lib.BufferUtils) local GetRegistry = BetterReplication.Remotes.GetRegistry local Utils = require(BetterReplication.Lib.Utils) local Config = require(BetterReplication.Config...
1,095
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Cleanup.luau
luau
.luau
local ScriptEditorService = game:GetService("ScriptEditorService") local Cleanup = {} Cleanup.Functions = {} Cleanup.List = {} function Cleanup:Hook(Service: string | nil, Tag: string | nil) if Service and Tag then Cleanup.Functions[Service] = Tag return true end return Cleanup.List end function Cleanup:Clear...
174
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Output.luau
luau
.luau
local LogService = game:GetService("LogService") local Cleanup = require(script.Parent.Cleanup) local Server = require(script.Parent.Server) local Http = require(script.Parent.Http) local GUID = Http:GUID() local Output = { UploadInterval = 1/15; PendingLogs = false; Busy = false; Logs = { Uploaded = 0; Coun...
759
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Server/Signal.luau
luau
.luau
-------------------------------------------------------------------------------- -- Batched Yield-Safe Signal Implementation -- -- This is a Signal class which has effectively identical behavior to a -- -- normal RBXScriptSignal, with the only difference being a couple extra ...
1,464
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Server/init.luau
luau
.luau
local Settings = require(script.Parent.Settings) local Cleanup = require(script.Parent.Cleanup) local Http = require(script.Parent.Http) local Signal = require(script.Signal) local Server = { Changed = Signal.new(); Disconnected = false; Connecting = false; Connected = false; StartTime = nil; } function Server:...
385
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Settings.luau
luau
.luau
local plugin = plugin or script:FindFirstAncestorWhichIsA("Plugin") local Settings = { ["autoConnect"] = true; ["port"] = 50583; } local function Update(Save: boolean | nil) for Setting, Value in (Settings) do if typeof(Value) ~= "function" then local SavedValue = nil if not Save then SavedValue = plu...
189
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Widget/Gui.luau
luau
.luau
return function() local Settings = Instance.new("Frame") Settings.Name = "Settings" Settings.AnchorPoint = Vector2.new(0.5, 0.5) Settings.BackgroundColor3 = Color3.fromRGB(46, 46, 46) Settings.BorderColor3 = Color3.fromRGB(43, 43, 43) Settings.ClipsDescendants = true Settings.Position = UDim2.fromScale(0.5, 0.5)...
4,831
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Widget/Interface/Status.luau
luau
.luau
return { ["Connect"] = { [true] = { ["TextButton"] = { ["BackgroundColor3"] = Color3.fromRGB(43, 43, 43); }, ["TextLabel"] = { ["TextColor3"] = Color3.fromRGB(255, 255, 255); ["TextTransparency"] = 0 }, ["UIStroke"] = { ["Color"] = Color3.fromRGB(97, 97, 97), ["Transparency"] = 0...
503
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Widget/Interface/Text.luau
luau
.luau
return { ["Disconnected"] = "not connected"; ["Connected"] = "connected"; ["Connecting"] = "connecting"; }
28
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Widget/Interface/Toggle.luau
luau
.luau
return { ["On"] = { [true] = { ["Frame"] = { ["BackgroundTransparency"] = 0 }, ["UIStroke"] = { ["Transparency"] = 0; }, ["ImageLabel"] = { ["ImageTransparency"] = 0 } }, [false] = { ["Frame"] = { ["BackgroundTransparency"] = 1 }, ["UIStroke"] = { ["Transparenc...
319
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Widget/Interface/init.luau
luau
.luau
local Tween = require(script.Parent.Tween) local Interface = {} Interface.List = {} function Interface:Get(Name, Value) if Value then return Interface.List[Name][Value] end return Interface.List[Name] end function Interface:Apply(GuiObject, Data) if Data[GuiObject.ClassName] then for Property, Value in (Data...
306
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Widget/Tween.luau
luau
.luau
local TweenService = game:GetService("TweenService") return function (Object, Goal, Duration, Style, Direction) Direction = Direction or Enum.EasingDirection.Out Style = Style or Enum.EasingStyle.Quad local TweenData = TweenInfo.new( Duration, Style, Direction ) local Animation = TweenService:Create(Obj...
93
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Widget/init.luau
luau
.luau
local plugin = plugin or script:FindFirstAncestorWhichIsA("Plugin") local toolbar = plugin:CreateToolbar("Nexus Sync") local Settings = require(script.Parent.Settings) local Server = require(script.Parent.Server) local Interface = require(script.Interface) local Gui = require(script.Gui) local Widget = { ["Icons"] ...
924
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/init.server.luau
luau
.luau
local RunService = game:GetService("RunService") if RunService:IsRunMode() then return end plugin.Name = script.Parent.Name local Settings = require(script.Modules.Settings) local Cleanup = require(script.Modules.Cleanup) local Widget = require(script.Modules.Widget) local Output = require(script.Modules.Output) l...
155
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Hitbox.luau
luau
.luau
--!strict --!native --!optimize 2 local RunService = game:GetService("RunService") local Settings = require(script.Parent.Settings) local Types = require(script.Parent.Types) local Solvers = require(script.Parent.Solvers) local Visualizer = require(script.Parent.Visualizers) function CreateHitbox(instance: Instance?...
2,047
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Settings.luau
luau
.luau
return { -- The tag or name of the object to find. Tag = "DmgPoint", Minimum_Stationary_Length = 1, -- Reveal if the debug lines should be visible or not. Debug_Visible = false, Debug_Instance_Raycast_Destroy_Time = 1, Debug_Instance_Spherecast_Destroy_Time = 0.1, Debug_Instance_Blockcast_Destroy_Time = 0.1, ...
171
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/Attachment.luau
luau
.luau
--!strict --!native --!optimize 2 local Settings = require(script.Parent.Parent.Settings) local Types = require(script.Parent.Parent.Types) local Solver = {} function Solver:ToPosition(segment: Types.Segment): Vector3 return segment.Position or segment.Instance.WorldPosition end function Solver:ToDirection(segment...
159
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/Blockcast.luau
luau
.luau
--!strict --!native --!optimize 2 local Types = require(script.Parent.Parent.Types) local Solver = { Solvers = {} } function Solver:Cast(segment: Types.Segment, raycastParams: RaycastParams?): RaycastResult? local direction: Vector3 = Solver.Solvers[segment.Instance.ClassName]:ToDirection(segment) local lastCFrame:...
193
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/Bone.luau
luau
.luau
--!strict --!native --!optimize 2 local Types = require(script.Parent.Parent.Types) local Solver = {} function Solver:ToPosition(segment: Types.Segment): Vector3 return segment.Instance.TransformedWorldCFrame.Position end function Solver:ToDirection(segment: Types.Segment): Vector3 if segment.Position then retur...
131
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/Raycast.luau
luau
.luau
--!strict --!native --!optimize 2 local Types = require(script.Parent.Parent.Types) local Solver = { Solvers = {} } function Solver:Cast(segment: Types.Segment, raycastParams: RaycastParams?): RaycastResult? local solver = Solver.Solvers[segment.Instance.ClassName] local origin: Vector3 = solver:ToPosition(segment)...
110
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/Spherecast.luau
luau
.luau
--!strict --!native --!optimize 2 local Types = require(script.Parent.Parent.Types) local Solver = { Solvers = {} } function Solver:Cast(segment: Types.Segment, raycastParams: RaycastParams?): RaycastResult? local solver = Solver.Solvers[segment.Instance.ClassName] local direction: Vector3 = solver:ToDirection(segm...
125
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/init.luau
luau
.luau
local Solvers = {} for _, solver in script:GetChildren() do local load = require(solver) load.Solvers = Solvers Solvers[solver.Name] = load end return Solvers
44
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Types.luau
luau
.luau
--[=[ @class Hitbox Create easy hitboxes using Raycasts and Shapecasts. To start using ShapecastHitbox, first initialize your hitbox via ShapecastHitbox.new(instance). After you have configured it, you can activate the hitbox by calling `Hitbox:HitStart()`. To stop the Hitbox, call `Hitbox:HitStop()`. If you a...
2,791
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Visualizers/Blockcast.luau
luau
.luau
--!native --!strict --!optimize 2 --- While using Trails as debugging lines would be nice (and more performant!), they are susceptible to frame drops and are inaccurate --- at low graphic settings which can create false results -- @author Phin local Types = require(script.Parent.Parent.Types) local Settings = require...
770
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Visualizers/Raycast.luau
luau
.luau
--!native --!strict --!optimize 2 --- While using Trails as debugging lines would be nice (and more performant!), they are susceptible to frame drops and are inaccurate --- at low graphic settings which can create false results -- @author Phin local Types = require(script.Parent.Parent.Types) local Settings = require...
742
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Visualizers/Spherecast.luau
luau
.luau
--!native --!strict --!optimize 2 --- While using Trails as debugging lines would be nice (and more performant!), they are susceptible to frame drops and are inaccurate --- at low graphic settings which can create false results -- @author Phin local Types = require(script.Parent.Parent.Types) local Settings = require...
755
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Visualizers/init.luau
luau
.luau
local Visualizers = {} for _, visualizer in script:GetChildren() do local load = require(visualizer) Visualizers[visualizer.Name] = load end return Visualizers
41
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/init.luau
luau
.luau
--!strict --!native --!optimize 2 -- ShapecastHitbox -- Phin -- August 2024 --[=[ Documentation of the hitbox can be found inside at ShapecastHitbox/Types.luau. This module is still relatively new and experimental, use at your own risk for production-level projects. ]=] local Types = require(script.Types) expor...
481
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/Bitbuf.lua
luau
.lua
------------------------------------------------------------------------------------- -- Bitbuf implements a bit-level buffer, suitable for -- serialization and storing data in-memory. ------------------------------------------------------------------------------------- --!native --!strict local Bitbuf = {} --------...
5,385
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/CageBuilder.lua
luau
.lua
--!strict local CageBuilder = {} CageBuilder.__index = CageBuilder local Modules = script.Parent local Trove = require(Modules.Trove) local JointTree = require(Modules.JointTree) local RobloxMesh = require(Modules.RobloxMesh) type Trove = Trove.Class type RobloxMesh = RobloxMesh.Class export type Class = typeof(set...
517
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/CageSolver.lua
luau
.lua
--!native --!strict local CageSolver = {} CageSolver.__index = CageSolver local Root = script.Parent local Matrix = require(Root.Matrix) local Octree = require(Root.Octree) local QuadTree = require(Root.QuadTree) local RobloxMesh = require(Root.RobloxMesh) local CageBuilder = require(Root.CageBuilder) type Octree = ...
992
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/JointTree.lua
luau
.lua
--!strict local JointTree = {} type Joints = { [BasePart]: SpanningTree, } type Assembly = { [BasePart]: CFrame, } type SpanningTree = { [number]: { Joint: JointInstance, Part: BasePart, }, } local function addJointEdge(joints: Joints, joint: JointInstance) local _part0 = joint.Part0 local _part1 = joint....
1,305
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/Octree.lua
luau
.lua
--!strict -- FIXME: This is nearly identical to QuadTree. Their common logic -- COULD be consolidated, but it's not really worth doing. -- Juggling the type annotation conflicts is not fun. local Octree = {} Octree.__index = Octree local OctreeNode = {} OctreeNode.__index = OctreeNode type Set<T> = { ...
3,104
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/QuadTree.lua
luau
.lua
--!strict -- FIXME: This is nearly identical to Octree. Their common logic -- COULD be consolidated, but it's not really worth doing. -- Juggling the type annotation conflicts is not fun. local QuadTree = {} QuadTree.__index = QuadTree local QuadTreeNode = {} QuadTreeNode.__index = QuadTreeNode type S...
2,942
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/RobloxMesh.lua
luau
.lua
--!strict local RobloxMesh = {} RobloxMesh.__index = RobloxMesh export type Vertex = { Position: Vector3, Normal: Vector3, UV: Vector2, Tangent: { Vector: Vector3, Sign: number, }?, Color: { Tint: Color3, Alpha: number, }, Weights: { [string]: number, }, } type Envelope = { Bones: { number }, ...
4,339
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/Signal.lua
luau
.lua
-- This is a strictly typed binding of sleitnick's Signal module. -- Use is optional but nice to have. --!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") local Packages = ReplicatedStorage.Packages local Signal: any = require(Packages.Signal) export type Connection = { Connected: boolean, Disc...
488
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/Trove.lua
luau
.lua
-- This is a strictly typed binding of sleitnick's Trove module. -- Use is optional but nice to have. --!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") local Packages = ReplicatedStorage.Packages local Modules = ReplicatedStorage.Modules local Trove = require(Packages.Trove) local Signal = req...
365
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Scripts/LiveCageMorph.server.lua
luau
.lua
--!strict local TweenService = game:GetService("TweenService") local Modules = game.ReplicatedStorage.Modules local CageSolver = require(Modules.CageSolver) local RobloxMesh = require(Modules.RobloxMesh) local CageBuilder = require(Modules.CageBuilder) local info = TweenInfo.new(2) local activeDummy: Model? = nil lo...
884
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Scripts/Wireframe/init.server.lua
luau
.lua
--!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") local Modules = ReplicatedStorage.Modules local CageSolver = require(Modules.CageSolver) local RobloxMesh = require(Modules.RobloxMesh) local CageBuilder = require(Modules.CageBuilder) type CageSolver = CageSolver.Class type CageMesh = "Referenc...
1,017
TheNexusAvenger/Nexus-VR-Core
TheNexusAvenger-Nexus-VR-Core-c547d32/src/Container/BaseScreenGui.luau
luau
.luau
--Base ScreenGui instance. --!strict local NexusInstance = require(script.Parent.Parent:WaitForChild("Packages"):WaitForChild("NexusInstance")) local BaseScreenGui = {} BaseScreenGui.ClassName = "BaseScreenGui" BaseScreenGui.__index = BaseScreenGui export type BaseScreenGui<T> = { Container: T, RotationOffse...
781
TheNexusAvenger/Nexus-VR-Core
TheNexusAvenger-Nexus-VR-Core-c547d32/src/Container/ScreenGui.luau
luau
.luau
--Contains user interface components. --!strict local UserInputService = game:GetService("UserInputService") local BaseScreenGui = require(script.Parent:WaitForChild("BaseScreenGui")) local ScreenGui3D = require(script.Parent:WaitForChild("ScreenGui3D")) local ScreenGui2D = require(script.Parent:WaitForChild("ScreenG...
139
TheNexusAvenger/Nexus-VR-Core
TheNexusAvenger-Nexus-VR-Core-c547d32/src/Container/ScreenGui2D.luau
luau
.luau
--Implementation of a ScreenGui for 2D players. --!strict local NexusInstance = require(script.Parent.Parent:WaitForChild("Packages"):WaitForChild("NexusInstance")) local BaseScreenGui = require(script.Parent:WaitForChild("BaseScreenGui")) local ScreenGui2D = {} ScreenGui2D.ClassName = "ScreenGui2D" ScreenGui2D.__ind...
303
TheNexusAvenger/Nexus-VR-Core
TheNexusAvenger-Nexus-VR-Core-c547d32/src/Container/ScreenGui3D.luau
luau
.luau
--Contains user interface components for a 3D user interface. --!strict local Workspace = game:GetService("Workspace") local RunService = game:GetService("RunService") local NexusInstance = require(script.Parent.Parent:WaitForChild("Packages"):WaitForChild("NexusInstance")) local BaseScreenGui = require(script.Parent...
1,125
TheNexusAvenger/Nexus-VR-Core
TheNexusAvenger-Nexus-VR-Core-c547d32/src/Utility/PartUtility.luau
luau
.luau
--Utility for parts. local PartUtility = {} --[[ Helper function for ray casting. --]] function PartUtility.RaycastToFront(AimingCFrame: CFrame, Size: Vector3, FrontCFrame: CFrame): (number, number, number) FrontCFrame = FrontCFrame * CFrame.new(0, 0, -Size.Z / 2) --Convert the aiming CFrame to a local CFr...
1,396
TheNexusAvenger/Nexus-VR-Core
TheNexusAvenger-Nexus-VR-Core-c547d32/src/init.luau
luau
.luau
--Main module for Nexus VR Core. --!strict local BaseScreenGui = require(script:WaitForChild("Container"):WaitForChild("BaseScreenGui")) local ScreenGui = require(script:WaitForChild("Container"):WaitForChild("ScreenGui")) local ScreenGui2D = require(script:WaitForChild("Container"):WaitForChild("ScreenGui2D")) local ...
379
MiaGobble/Seam
MiaGobble-Seam-e0e3683/src/Constructors/Connections/OnAttached.luau
luau
.luau
-- Author: iGottic local OnAttached = {} -- Types export type OnAttached = (Object : any, Callback : (AttachedInstance : Instance) -> nil) -> RBXScriptConnection function OnAttached:__call(Object : any, Callback : (AttachedInstance : Instance) -> nil) return (Object.AttachedToInstance :: RBXScriptSignal):Connect...
172
MiaGobble/Seam
MiaGobble-Seam-e0e3683/src/Constructors/Connections/OnAttributeChanged.luau
luau
.luau
-- Author: iGottic local OnAttributeChanged = {} -- Types export type OnAttributeChanged = (AttributeName : string) -> (...any) -> RBXScriptConnection function OnAttributeChanged:__call(AttributeName : string) local ActiveConnection : RBXScriptConnection = nil local EventBinding = setmetatable({ Des...
264
MiaGobble/Seam
MiaGobble-Seam-e0e3683/src/Constructors/Connections/OnChanged.luau
luau
.luau
-- Author: iGottic local OnChanged = {} -- Types export type OnChanged = (Object : any, Callback : (PropertyChanged : string, NewValue : any) -> nil) -> RBXScriptConnection function OnChanged:__call(Object : any, Callback : (PropertyChanged : string, NewValue : any) -> nil) -- Fortunately, states also have a Cha...
210
MiaGobble/Seam
MiaGobble-Seam-e0e3683/src/Constructors/Connections/OnEvent.luau
luau
.luau
-- Author: iGottic local OnEvent = {} -- Types export type OnEvent = (EventName : string) -> (...any) -> RBXScriptConnection function OnEvent:__call(EventName : string) local ActiveConnection : RBXScriptConnection = nil local EventBinding = setmetatable({ Destroy = function() if ActiveCo...
282
MiaGobble/Seam
MiaGobble-Seam-e0e3683/src/Constructors/Declarations/Attribute.luau
luau
.luau
-- Author: iGottic local Attribute = {} -- Imports local Modules = script.Parent.Parent.Parent.Modules local Types = require(Modules.Types) local Symbol = require(Modules.Symbol) -- Variable local ClassSymbol = Symbol.new("Attribute") -- Types Extended export type Attribute = (AttributeName : string) -> (Object : I...
340
MiaGobble/Seam
MiaGobble-Seam-e0e3683/src/Constructors/Declarations/Children.luau
luau
.luau
-- Author: iGottic local Children = {} -- Imports local Modules = script.Parent.Parent.Parent.Modules local Types = require(Modules.Types) local Symbol = require(Modules.Symbol) -- Variables local ClassSymbol = Symbol.new("Children") -- Types Extended export type Children = (Object : Instance, Children : {Types.Chi...
644