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
| local STICKY_PLATFORM_TAG = "StickyPlatform" | |
| local DISTANCE_TO_CHECK_BELOW = 15 | |
| local CollectionService = game:GetService("CollectionService") | |
| local RunService = game:GetService("RunService") | |
| local Player = game:GetService("Players").LocalPlayer | |
| local lastPlatformCFrame = nil | |
| RunService.Heartbeat:Connect(function() | |
| if not Player.Character then |
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 Packages = game:GetService("ReplicatedStorage"):WaitForChild("Packages") | |
| local Fusion = require(Packages.Fusion) | |
| local Cleanup = Fusion.Cleanup | |
| local Hydrate = Fusion.Hydrate | |
| local Children = Fusion.Children | |
| local Computed = Fusion.Computed | |
| local Tween = Fusion.Tween | |
| local Value = Fusion.Value | |
| local New = Fusion.New |
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 | |
| --June 2 2022 | |
| local ProximityPromptService = game:GetService("ProximityPromptService") | |
| local Players = game:GetService("Players") | |
| local highlightLookupDictionary = {} | |
| ProximityPromptService.PromptShown:Connect(function(promptInstance) | |
| if not highlightLookupDictionary[promptInstance] then |
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 DEFAULT_THEME = "NAME_OF_THEME" | |
| local Fusion = require(PATH_TO_FUSION) | |
| local Value = Fusion.Value | |
| type themeState = Fusion.StateObject<any>? | |
| type theme = { | |
| {[any]: any} | |
| } |
NewerOlder