Quick and dirty. You probably want this for debugging, so just slap this function in wherever you want it.
Minified and full versions are included below. Pick one!
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]); | |
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default; | |
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes); | |
var user = UserStore.getCurrentUser(); | |
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({ | |
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [], | |
}); | |
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN(); | |
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done"; |
local RunService = game:GetService("RunService") | |
-- compile an oriented bounding box into a scaled CFrame | |
local function compileBBox(cframe: CFrame, size: Vector3) | |
return CFrame.fromMatrix( | |
cframe.Position, | |
cframe.XVector/size.X, | |
cframe.YVector/size.Y, | |
cframe.ZVector/size.Z | |
):Inverse() |
--[[ | |
========================================================================== | |
== API == | |
Differences from the original: | |
Using metatables instead of a function returning a table. | |
Added Vector3, Color3, Vector2, and UDim2 support. | |
Deprecated BrickColors. | |
Changed the creation method from BitBuffer.Create to BitBuffer.new. |
if false then -- For LuaDoc | |
--- | |
-- Pure Lua implementation of bitwise operations. | |
-- Not suitable for time critical code. Intended as fallback | |
-- for cases where a native implementation is unavailable. | |
-- Further optimization may be possible. | |
-- @version 0.1 | |
-- @author kaeza <https://github.com/kaeza> | |
module "bitty" |