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 GetService(ServiceName: string) | |
| return game:GetService(ServiceName) | |
| end | |
| local ServicesMetatable = {} | |
| function ServicesMetatable:__index(Index) | |
| local Success, Object = pcall(GetService, Index) | |
| local Service = Success and Object | |
| self[Index] = Service | |
| return Service |
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
| export default class ObjectPool<T extends object> { | |
| public ExpansionSize = 5; | |
| public Generator: () => T; | |
| public Cleaner: (object: T) => void; | |
| public Reserve: Array<T>; | |
| public InUse: Array<T>; | |
| public constructor(precreateAmount: number, generator: () => T, cleaner: (object: T) => void) { | |
| this.Generator = generator; |
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
| $Key = "HKCU:\Software\ROBLOX Corporation\Environments\roblox-player" | |
| while ($true) | |
| { | |
| $CurrentValue = (Get-ItemProperty -Path $Key -Name "LaunchExp").LaunchExp | |
| if ($CurrentValue -eq "InApp") | |
| { | |
| #Write-Output "Value is InApp." | |
| Set-ItemProperty -Path $Key -Name "LaunchExp" -Value "InBrowser" | |
| } |
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 BetterPages = {} | |
| function BetterPages.new(Pages: Pages) | |
| return setmetatable({Pages = Pages}, BetterPages) | |
| end | |
| function BetterPages.FromPcall(Success: boolean, ValueOrError: Pages | string) | |
| if Success then | |
| return true, setmetatable({Pages = ValueOrError}, BetterPages) | |
| 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
| const GRAD_3 = [ | |
| [1, 1, 0], | |
| [-1, 1, 0], | |
| [1, -1, 0], | |
| [-1, -1, 0], | |
| [1, 0, 1], | |
| [-1, 0, 1], | |
| [1, 0, -1], | |
| [-1, 0, -1], | |
| [0, 1, 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
| local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
| local Llama = require(ReplicatedStorage.Shared.Vendor.Llama) | |
| local Roact = require(ReplicatedStorage.Shared.Vendor.Roact) | |
| local Types = require(ReplicatedStorage.Shared.Types) | |
| export type IEdgeRoundedProps = { | |
| -- EdgeRounded Properties | |
| RoundedEdge: "Bottom" | "Left" | "Right" | "Top", | |
| } & Types.IImageLabelProps |
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 Memoize = require(script.Memoize) | |
| local StringRep = require(script.StringRep) | |
| --[=[ | |
| A utility library for compressing strings with LZW. This was made as fast | |
| as possible by using fun tricks like *lots* of memoization. | |
| @class Lzw | |
| ]=] | |
| local Lzw = {} |
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 BoxMeta = {} | |
| BoxMeta.__index = BoxMeta | |
| function BoxMeta:get() | |
| return self._value | |
| end | |
| function BoxMeta:set(v) | |
| self._value = v | |
| end |
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 Workspace = game:GetService("Workspace") | |
| local GuiService = game:GetService("GuiService") | |
| local Fusion = require("Fusion") | |
| local Janitor = require("Janitor") | |
| local TopInset, BottomInset = GuiService:GetGuiInset() | |
| export type Properties = { | |
| Scale: number?, |
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 Class = {} | |
| Class.__index = Class | |
| function Class:Destroy() | |
| setmetatable(self, nil) | |
| end | |
| function Class:Method() | |
| return 1 | |
| end |