This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --!strict | |
| local Studio = settings().Studio | |
| local Packages = script.Parent.Parent.Packages | |
| local Fusion = require(Packages.Fusion) | |
| local Contextual = Fusion.Contextual | |
| local Computed = Fusion.Computed | |
| local Value = Fusion.Value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --!strict | |
| type AudioModifier = AudioEcho | AudioFader | AudioChorus | AudioReverb | AudioFlanger | AudioEqualizer | AudioCompressor | AudioDistortion | AudioPitchShifter | |
| type AudioProcessor = AudioAnalyzer | AudioListener | |
| type AudioOutput = AudioEmitter | AudioDeviceOutput | |
| type AudioInput = AudioDeviceInput | AudioPlayer | |
| export type Wireable = AudioModifier | AudioProcessor | AudioOutput | AudioInput | |
| local function createWire(source: Wireable, target: Wireable, sourceName: string, targetName: string, parent: Instance): Wire |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local MATERIAL_DEMO_SIZE = 4 | |
| local MATERIAL_DEMO_SPACING = 1 | |
| local MATERIAL_DEMO_SHAPE = Enum.PartType.Block | |
| local MATERIAL_DEMO_COLOR = Color3.fromRGB(255, 255, 255) | |
| local MATERIAL_DEMO_OFFSET = Vector3.yAxis * MATERIAL_DEMO_SIZE/2 | |
| local USE_COLUMNS = true | |
| local MATERIALS_PER_ROW = 12 | |
| local createdMaterialDemos = {} do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local function rawTween(tweenInfo: TweenInfo, tweenCallback: (tweenAlpha: number) -> nil) | |
| local tweenEasingStyle = tweenInfo.EasingStyle | |
| local tweenEasingDirection = tweenInfo.EasingDirection | |
| local tweenRepeatCount = tweenInfo.RepeatCount | |
| local tweenIndefinitely = tweenRepeatCount<=-1 | |
| local tweenDelay = tweenInfo.DelayTime | |
| local tweenDuration = tweenDelay + tweenInfo.Time | |
| local tweenReverses = tweenInfo.Reverses |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --!strict | |
| local Plugin = script:FindFirstAncestorWhichIsA("Plugin") | |
| local Packages = script.Parent.Parent.Packages | |
| local Fusion = require(Packages.Fusion) | |
| local Studio = settings().Studio | |
| local Computed = Fusion.Computed | |
| local Value = Fusion.Value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- originally by @boatbomber | |
| -- modified by @mvyasu | |
| local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
| local Fusion = require(ReplicatedStorage.Fusion) | |
| local unwrap = require(ReplicatedStorage.Fusion.State.unwrap) | |
| local Children = Fusion.Children | |
| local ForPairs = Fusion.ForPairs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --by @mvyasu | |
| --4 May 2023 | |
| --A quick and easy way to hide characters by setting attributes | |
| --To change whether characters are hidden do: game.Players:SetAttribute("HideCharacters", true) | |
| --To exclude a player's character from being hidden do: game.Players.LocalPlayer:SetAttribute("NeverHideCharacter", true) | |
| local CHARACTER_TAG = game:GetService("HttpService"):GenerateGUID() | |
| local CollectionService = game:GetService("CollectionService") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local function cleanupObject(object: any) | |
| local t = typeof(object) | |
| if t == "function" then | |
| object() | |
| elseif t == "RBXScriptConnection" then | |
| object:Disconnect() | |
| elseif t == "table" or t =="Instance" then | |
| if object.Destroy then | |
| object:Destroy() | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --[[ | |
| Utilities for serialising and deserialising values for safe representation | |
| in limited media, for example when saving to plugin storage or attributes. | |
| (c) Elttob 2022 - Licensed under MIT | |
| ]] | |
| local HttpService = game:GetService("HttpService") | |
| local Serde = {} |