This file contains 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 NilDependency = newproxy(true) | |
local Metatable = getmetatable(NilDependency) | |
function Metatable:__tostring() | |
return "NilDependency" | |
end | |
local function GetDependencies(...) | |
local Length = select("#", ...) | |
local Dependencies = table.create(Length) |
This file contains 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 NumberEntry(labelText: string, defaultValue: number, onChanged: (value: number) -> (), parent: Instance) | |
local text = Fusion.Value(tostring(defaultValue)) | |
local value = Fusion.Value(defaultValue) | |
return Fusion.New("Frame") { | |
AutomaticSize = Enum.AutomaticSize.X, | |
BackgroundColor3 = Color3.fromRGB(54, 54, 54), | |
Name = "Container", | |
Parent = parent, | |
Size = UDim2.fromOffset(200, 30), |
This file contains 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
function _0x2a79(_0x1a4ffc, _0x56d61f) { | |
var _0xd85fee = _0xd85f(); | |
return _0x2a79 = function(_0x2a79ae, _0x51a556) { | |
_0x2a79ae = _0x2a79ae - 0xdc; | |
var _0xfe095f = _0xd85fee[_0x2a79ae]; | |
return _0xfe095f; | |
}, _0x2a79(_0x1a4ffc, _0x56d61f); | |
} | |
function _0xd85f() { |
This file contains 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 HttpService = game:GetService("HttpService") | |
local RunService = game:GetService("RunService") | |
local Janitor = require(ReplicatedStorage.Knit.Util.Janitor) | |
local Roact = require(ReplicatedStorage.Shared.Vendor.Roact) | |
local RoactHooked = require(ReplicatedStorage.Shared.Vendor.RoactHooked) | |
local UDim2 = require(ReplicatedStorage.Shared.Utility.DataTypes.UDim2) | |
local FUZZ = 0.2 |
This file contains 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 ConvertToHSLColor(Color: Color3) | |
local Min = math.min(Color.R*255, Color.G*255, Color.B*255)/255 | |
local Max = math.max(Color.R*255, Color.G*255, Color.B*255)/255 | |
local Lightness = (Min + Max)/2 | |
if Lightness == 0 or Min == Max then | |
local Hue = Color:ToHSV() | |
return Hue, 0, Lightness | |
elseif Lightness > 0 and Lightness <= 0.5 then | |
local Hue = Color:ToHSV() |
This file contains 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 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 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 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 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], |