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
| --!optimize 2 | |
| --!strict | |
| local fs = require("@lune/fs") | |
| local process = require("@lune/process") | |
| local task = require("@lune/task") | |
| local FileInstance = {} | |
| FileInstance.__index = FileInstance | |
| local function Constructor(FilePath: string, FileName: string?) |
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 HttpService = game:GetService("HttpService") | |
| local React = require(script.Parent.Parent.Packages.Roact) | |
| local tree | |
| local function Component() | |
| local value, setValue = React.useState("") | |
| React.useEffect(function() | |
| local connection = ReplicatedStorage:GetAttributeChangedSignal("Value"):Connect(setValue) |
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
| -- Compiled with roblox-ts v2.1.0 | |
| local NORMALIZER_VECTOR3 = Vector3.new(1, 0, 1) | |
| local CanBackstab = function(attacker, victim) | |
| local attackerHead = attacker:FindFirstChild("Head") | |
| if attackerHead and attackerHead:IsA("BasePart") then | |
| local victimHead = victim:FindFirstChild("Head") | |
| if victimHead and victimHead:IsA("BasePart") then | |
| local _exp = victim:GetPivot().Position * NORMALIZER_VECTOR3 | |
| local _arg0 = attacker:GetPivot().Position * NORMALIZER_VECTOR3 | |
| local attackerToVictim = (_exp - _arg0).Unit |
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 ReactRoblox = require("ReactRoblox") | |
| local function mount(element: any, parent: any, key: string?): RoactHandle | |
| if parent ~= nil and typeof(parent) ~= "Instance" then | |
| error(string.format( | |
| "Cannot mount element (`%s`) into a parent that is not a Roblox Instance (got type `%s`) \n%s", | |
| if element then tostring(element.type) else "<unknown>", | |
| typeof(parent), | |
| if parent ~= nil then inspect(parent) 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 Janitor = require("Janitor") | |
| --[=[ | |
| Manages the cleaning of events and other things. Useful for | |
| encapsulating state and make deconstructors easy. | |
| See the [Five Powerful Code Patterns talk](https://developer.roblox.com/en-us/videos/5-powerful-code-patterns-behind-top-roblox-games) | |
| for a more in-depth look at Maids in top games. | |
| ```lua |
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 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 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 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 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
| 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 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 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 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 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() |