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
--Chickenrockets script editor colors - Paste this in your command bar | |
--Full disclosure I have no idea where these colors came from originally! | |
local s = settings().Studio | |
s["Background Color"] = Color3.fromRGB(18,17,17) | |
s["Text Color"] = Color3.fromRGB(210,190,121) | |
s["Keyword Color"] = Color3.fromRGB(102,194,146) | |
s["Number Color"] = Color3.fromRGB(236,154,100) | |
s["String Color"] = Color3.fromRGB(152,195,121) | |
s["Comment Color"] = Color3.fromRGB(119,105,79) | |
s["Operator Color"] = Color3.fromRGB(102,194,146) |
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 | |
--!native | |
--Polychrome effect - tag MeshParts with "Polychrome" | |
--Rewrites an editable image with some precalculate buffers each frame (because raw editableimages are memory capped!) | |
--Default values use about 30mb, but you can easily reduce/increase this with these two variables | |
--Try and be sane :) | |
local size : number = 128 | |
local frameCount : number = 500 |
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 module = require(script.StrokeScript) | |
local gui = game.Players.LocalPlayer.PlayerGui:WaitForChild("ScreenGui"):WaitForChild("ImageLabel") | |
local comp = game.Players.LocalPlayer.PlayerGui:WaitForChild("ScreenGui"):WaitForChild("CompositeImageLabel") | |
--Build a separate stroke image (white) and display it behind the src image | |
local stroke = 16 | |
local strokeImage, origSize, finalSize = module:MakeStrokeImageFromAssetIdAsync(gui.Image, stroke) | |
if (strokeImage) 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 module = {} | |
local deltaTable = require(game.ReplicatedFirst.Modules.DeltaTable) | |
module.tables = {} | |
module.callbacks = {} | |
module.remoteEvent = nil | |
--Connect for a callback | |
-- function(currentTable, delta, oldTable) | |
function module:Connect(name, callback) |
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 BASE_URL = "http://localhost:3090/" | |
local FileService = {} | |
function to_base64(data) | |
local b = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' | |
return ((data:gsub('.', function(x) | |
local r,b='',x:byte() |
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 Packages = ReplicatedStorage.Packages | |
local Shared = ReplicatedStorage.Shared | |
local TableUtil = require(Packages.TableUtil) | |
local DiffTable = {} | |
------------------------------------------------------------------------------------------------ |
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 Frustum = {} | |
local function planeFromPoints(p0, p1, p2) | |
local normal = (p1 - p0):Cross(p2 - p1).Unit | |
return { | |
normal = normal, | |
d = -normal:Dot(p0), | |
} | |
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 module = {} | |
local HttpService = game:GetService("HttpService") | |
function to_base64(data) | |
local b = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' | |
return ((data:gsub('.', function(x) | |
local r,b='',x:byte() | |
for i=8,1,-1 do r=r..(b%2^i-b%2^(i-1)>0 and '1' or '0') end | |
return r; |
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
--bresenham line walk | |
function MathUtils:BresLine(x0, y0, x1, y1, callback) | |
local sx,sy,dx,dy | |
if x0 < x1 then | |
sx = 1 | |
dx = x1 - x0 | |
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
if (script:IsDescendantOf(game.ReplicatedFirst) == false) then | |
error(script.Name .. "needs to be in ReplicatedFirst") | |
end | |
local CollectionService = game:GetService("CollectionService") | |
local kinematicObjects = {} | |
local function AddInstance(target) | |
NewerOlder