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
local textLabel = script.Parent | |
local lastUpdateTextThread = nil | |
local function updateText(newText: string) | |
if lastUpdateTextThread then | |
task.cancel(lastUpdateTextThread) | |
lastUpdateTextThread = nil | |
end | |
lastUpdateTextThread = task.spawn(function() |
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 atan2 = math.atan2 | |
local sqrt = math.sqrt | |
local circleCircumference = math.pi*2 | |
local function getGeoTimeForPointDirection(pointDirection: Vector3, longitudeFactor: number?): (number, number) | |
local realLongitudeFactor = longitudeFactor or -1 | |
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
--CameraSubjectLocalTransparency | |
--by @mvyasu | |
local HIDE_CHARACTER_WHEN_DISTANCE_IS_LESS_THAN = 5 | |
local SHOULD_TWEEN_TRANSPARENCY = false | |
local TRANSPARENCY_TWEEN_INFO = TweenInfo.new(1) | |
local TweenService = game:GetService("TweenService") |
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") |
NewerOlder