repo stringclasses 341
values | file_path stringlengths 29 173 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 2 1.66M | tokens int64 2 598k |
|---|---|---|---|---|---|
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Movement/conveyor.luau | luau | .luau | --!strict
--[[
@class Conveyor
Moves players and parts along the conveyor direction.
Attributes:
- attr_speed: number (default: 10) - Conveyor speed in studs per second
- attr_direction: Vector3 (default: 0, 0, -1) - Direction relative to part's CFrame
]]
local RunService = game:GetService("RunService")
local A... | 387 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Movement/gravity_zone.luau | luau | .luau | --!strict
--[[
@class GravityZone
Applies custom gravity to players while inside the zone.
Attributes:
- attr_gravity_force: number (default: 50) - Gravity force (positive = down, negative = up)
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent.Parent
local Packages = Attri... | 513 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Movement/jump_pad.luau | luau | .luau | --!strict
--[[
@class JumpPad
Launches players into the air on touch.
Attributes:
- attr_jump_distance: number (default: 20) - Target studs distance to launch
- attr_cooldown: number (default: 1) - Cooldown between launches per player
- attr_push_relative_to_object: boolean (default: true) - Push relative to obj... | 786 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Movement/push_zone.luau | luau | .luau | --!strict
--[[
@class PushZone
Pushes players in a specified direction while inside the zone.
Attributes:
- attr_force: number (default: 20) - Push force magnitude
- attr_direction: Vector3 (default: 0, 0, 1) - Push direction relative to part's CFrame
]]
local RunService = game:GetService("RunService")
local At... | 580 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Movement/slow_zone.luau | luau | .luau | --!strict
--[[
@class SlowZone
Slows player movement while inside the zone.
Attributes:
- attr_multiplier: number (default: 0.5) - Speed multiplier (0.5 = 50% speed)
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent.Parent
local Packages = Attrify
local CollectionWatcher =... | 455 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Movement/speed_boost.luau | luau | .luau | --!strict
--[[
@class SpeedBoost
Temporarily increases player walk speed when touched.
Attributes:
- attr_multiplier: number (default: 2) - Speed multiplier
- attr_duration: number (default: 5) - Duration of the boost in seconds
- attr_cooldown: number (default: 10) - Cooldown before player can get another boost... | 523 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Movement/speed_zone.luau | luau | .luau | --!strict
--[[
@class SpeedZone
Increases player movement speed while inside the zone.
Attributes:
- attr_multiplier: number (default: 1.5) - Speed multiplier (1.5 = 150% speed)
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent.Parent
local Packages = Attrify
local Collect... | 455 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Movement/teleporter.luau | luau | .luau | --!strict
--[[
@class Teleporter
Teleports players between two parts within a Model.
Structure:
- Model (tagged with "teleporter")
- From: BasePart - Entry point
- To: BasePart - Exit point
Attributes:
- attr_cooldown: number (default: 1) - Cooldown between teleports per player
- attr_one_way: boolean (def... | 687 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Obby/checkpoint.luau | luau | .luau | --!strict
--[[
@class Checkpoint
Checkpoint system for obby games with persistence support.
Tags:
- "checkpoint" - Checkpoint marker, sets checkpoint when touched, acts as spawn point
- "spawn_point" - Optional explicit spawn location (overrides checkpoint position)
Attributes (checkpoint):
- attr_checkpoint_n... | 2,629 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Obby/cycling_kill_part.luau | luau | .luau | --!strict
--[[
@class CyclingKillPart
Kill part that cycles between active and inactive states.
Only damages players when visible/active.
Attributes:
- attr_active_time: number (default: 2) - Time the part is active (visible and deadly)
- attr_inactive_time: number (default: 2) - Time the part is inactive (hidde... | 765 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Obby/cycling_platform.luau | luau | .luau | --!strict
--[[
@class CyclingPlatform
Platform that cycles between visible and hidden states.
Attributes:
- attr_visible_time: number (default: 2) - Time the platform is visible
- attr_hidden_time: number (default: 2) - Time the platform is hidden
- attr_delay: number (default: 0) - Initial delay before starting... | 459 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Sound/ambient_sound.luau | luau | .luau | --!strict
--[[
@class AmbientSound
Plays an ambient looping sound.
Attributes:
- attr_sound_id: string (required) - Asset ID of the sound
- attr_volume: number (default: 0.5) - Sound volume
- attr_range: number (default: 50) - Maximum audible distance
]]
local RunService = game:GetService("RunService")
local A... | 522 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Sound/proximity_sound.luau | luau | .luau | --!strict
--[[
@class ProximitySound
Plays a sound when a player comes within range.
Attributes:
- attr_sound_id: string (required) - Asset ID of the sound
- attr_volume: number (default: 0.5) - Sound volume
- attr_range: number (default: 20) - Trigger distance
- attr_cooldown: number (default: 5) - Minimum tim... | 712 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Sound/touch_sound.luau | luau | .luau | --!strict
--[[
@class TouchSound
Plays a sound when a player touches the part.
Attributes:
- attr_sound_id: string (required) - Asset ID of the sound
- attr_volume: number (default: 0.5) - Sound volume
- attr_cooldown: number (default: 0.5) - Minimum time between plays
]]
local RunService = game:GetService("Run... | 528 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Visual/beamer.luau | luau | .luau | --!strict
--[[
@class Beamer
Creates a beam between this part and a target part.
Attributes:
- attr_target_name: string (required) - Name of the target part
- attr_beam_color: Color3 (default: white) - Color of the beam
- attr_width: number (default: 1) - Width of the beam
]]
local RunService = game:GetService(... | 579 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Visual/billboard.luau | luau | .luau | --!strict
--[[
@class Billboard
Adds a BillboardGui with text above a part.
Attributes:
- attr_text: string (default: "") - Text to display
- attr_text_color: Color3 (default: white) - Text color
- attr_text_size: number (default: 24) - Text size
- attr_offset: number (default: 3) - Offset above the part
]]
lo... | 648 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Visual/flickerer.luau | luau | .luau | --!strict
--[[
@class Flickerer
Makes a part flicker on and off randomly.
Attributes:
- attr_flicker_speed: number (default: 10) - Average flickers per second
- attr_flicker_chance: number (default: 0.3) - Chance to be "off" (0-1)
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent... | 459 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Visual/glowing.luau | luau | .luau | --!strict
--[[
@class Glowing
Adds a neon glow effect to a part.
Attributes:
- attr_glow_color: Color3 (optional) - Color of the glow (defaults to part color)
- attr_brightness: number (default: 1) - PointLight brightness
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent.P... | 405 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Visual/spotlighter.luau | luau | .luau | --!strict
--[[
@class Spotlighter
Adds a spotlight to a part. The spotlight uses the bottom face.
Attributes:
- attr_range: number (default: 16) - Light range
- attr_angle: number (default: 90) - Spotlight angle in degrees
- attr_light_color: Color3 (default: white) - Color of the light
- attr_brightness: numbe... | 549 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Visual/trail.luau | luau | .luau | --!strict
--[[
@class Trail
Adds a trail attachment to a part.
Attributes:
- attr_trail_color: Color3 (default: white) - Color of the trail
- attr_lifetime: number (default: 1) - Trail lifetime in seconds
- attr_width: number (default: 1) - Trail width
- attr_axis: Vector3 (default: 0, 1, 0) - Axis for trail at... | 659 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/AndOrChains.luau | luau | .luau |
local function allTrue(p0, p1, p2, p3) --[[ line: 1 ]]
return p0 and (p1 and (p2 and p3))
end
local function anyTrue(p4, p5, p6) --[[ line: 5 ]]
return p4 or (p5 or p6)
end
local function mixed(p7, p8, p9) --[[ line: 9 ]]
return p7 > 0 and p8 < 10 and p9 ~= nil
end
local function fallback(p10, p11, p12) --[[ lin... | 212 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/BinaryOperationCF.luau | luau | .luau |
print(if IsAdmin then if HasKeycard then "ACCESS_GRANTED" elseif IsGuest then "LIMITED_ACCESS" else "NO_KEYCARD" elseif IsBanned then "BANNED" elseif 1000 <= Coins then if OwnsVIP then "VIP_PLAYER" else "RICH_PLAYER" elseif 50 <= Level then if HasBadge then "PRO_PLAYER" else "EXPERIENCED_PLAYER" else "NEW_PLAYER") | 89 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/BinaryOperationSimple.luau | luau | .luau |
local _ = x * (y + z)
local _ = (x - w) * (y + z) | 25 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/ChainedComparisons.luau | luau | .luau |
local function inRange(p0, p1, p2) --[[ line: 1 ]]
return p1 <= p0 and p0 <= p2
end
local function clamp(value, minValue, maxValue) --[[ line: 1 ]]
return if value < minValue then minValue elseif maxValue < value then maxValue else value
end
local function sign(value) --[[ line: 1 ]]
return if value > 0 then 1 el... | 146 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/ClassMethods.luau | luau | .luau |
local t = {}
t.__index = t
function t.new(p0, p1) --[[ line: 4 ]]
-- upvalues: t (ref)
local t_1 = setmetatable({}, t)
t_1.name = p0
t_1.health = p1
return t_1
end
function t:takeDamage(p2) --[[ line: 11 ]]
self.health = self.health - p2
if self.health <= 0 then
self:die()
end
end
function t:die() --[... | 240 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/Compoundops.luau | luau | .luau |
print(((10 + 5 - 3) * 2 / 4 % 3) ^ 2 .. "!") | 27 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/DeadDiscards.luau | luau | .luau |
local runService = game:GetService("RunService")
local _ = runService:IsClient()
local _ = runService:IsServer()
local v1 = runService:IsStudio()
if runService:IsServer() then
local _ = require(game:GetService("ServerScriptService"))
end
print(v1) | 63 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/FunctionMultiReturn.luau | luau | .luau |
local v0, v1 = (function(a, b, p0) --[[ line: 1 | named "minmax" ]]
return math.min(a, b, p0), math.max(a, b, p0)
end)(7, 2, 5)
print(v0, v1) | 66 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/GenericForLoop.luau | luau | .luau |
print("Hello World!")
for i, v in pairs({}) do
print(...)
break
end
print("Goodbye World!") | 28 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/GuardClauses.luau | luau | .luau |
local function damage(p0) --[[ line: 14 ]]
if p0 and p0.Health <= 0 and not p0.Dead then
p0.Dead = os.clock()
end
return p0
end
print((function(p1, p2) --[[ line: 1 | named "cached" ]]
if not p1 then
return nil
end
if p2[p1] and os.clock() < p2[p1] then
return p2[p1]
end
p2[p1] = os.clock() + 1
retur... | 142 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/LoopScopedLocals.luau | luau | .luau |
return function(p0, p1) --[[ line: 1 | named "accumulate" ]]
local v0 = 0
repeat
if not p0 then
break
end
v0 = v0 + p1.Heartbeat:Wait()
until v0 > 10
repeat
v0 = v0 + math.random()
until v0 > 20
for i = 1, 5 do
v0 = v0 + i * 2
end
return v0
end | 117 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/MethodDefinitions.luau | luau | .luau |
local t = {
setup = function(value, p0) --[[ line: 3 ]]
value.ready = p0 ~= nil
value.config = p0
end,
run = function(p1, p2) --[[ line: 8 ]]
return p1.ready and p1:transform(p2)
end,
transform = function(_, p3) --[[ line: 12 ]]
return p3 * 2
end,
static = function(p4, p5) --[[ line: 16 ]]
return p4 +... | 147 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/NestedConditions.luau | luau | .luau |
return function(p0, p1) --[[ line: 1 | named "scan" ]]
local v0 = nil
while true do
task.wait()
if not (p0 and p0:IsDescendantOf(p1)) then
break
end
local position = p0.Position
if position.Y > 0.8 then
v0 = position
else
p0.Anchored = false
end
return v0
end
end | 107 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/NestedLoops.luau | luau | .luau |
for i_1 = 1, 3 do
for i = 1, 3 do
if i == 2 then
break
end
print(i_1, i)
end
end | 48 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/NumericForLoop.luau | luau | .luau |
print("Hello World!")
for i = 1, 20 do
print(i)
if i % 2 ~= 0 then
print("i % 2 ~= 0")
print("Intermediate statement")
print("Goodbye World!")
end
end | 57 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/RecursiveFunction.luau | luau | .luau |
local function factorial(p0) --[[ line: 1 ]]
-- upvalues: factorial (ref)
return if p0 <= 1 then 1 else p0 * factorial(p0 - 1)
end
local function fibonacci(p1) --[[ line: 1 ]]
-- upvalues: fibonacci (ref)
return if p1 <= 1 then p1 else fibonacci(p1 - 1) + fibonacci(p1 - 2)
end
print(factorial(6))
print(fibonacci... | 109 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/Repeat.luau | luau | .luau |
print("Before")
repeat
x()
until condition
print("After") | 16 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/RepeatBreakContinue.luau | luau | .luau |
return function(p0, _) --[[ line: 1 | named "poll" ]]
local result, positions
local _ = nil
local _ = nil
repeat
task.wait(1)
result = workspace:FindFirstChild("Result")
positions = result and result:FindFirstChild("Positions")
until positions and positions:FindFirstChildOfClass("CFrameValue") or not (p0 an... | 96 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/ShortCircuitAssign.luau | luau | .luau |
local httpService = cloneref and cloneref(game:GetService("HttpService")) or game:GetService("HttpService")
print((function(p0, p1) --[[ line: 1 | named "resolve" ]]
return if p0 and p0.speed then p0.speed else 16, if p0 and p0.name then p0.name else "unnamed", p0 ~= nil and p0.enabled ~= false or p1
end)({ speed = 3... | 108 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/TernaryChains.luau | luau | .luau |
local function grade(p0) --[[ line: 1 ]]
return if p0 >= 90 then "A" elseif p0 >= 80 then "B" elseif p0 >= 70 then "C" else "F"
end
local function pick(p1, p2, p3) --[[ line: 5 ]]
return if p3 then p1 else p2
end
local function clampScale(value) --[[ line: 10 ]]
local v3 = 47 - value
return if v3 > 0 then 0.6 ... | 155 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/WhileCondition.luau | luau | .luau |
print("Before")
while condition do
print("Body")
end
print("After") | 19 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Decompile/WhileTrue.luau | luau | .luau |
while true do
print("Body")
end | 10 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/AndOrChains.luau | luau | .luau |
# Luau version: 9 (0x0000009)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 4 (0x0000004)
# Total functions: 5 (0x0000004)
# Constants [9] (0x0000009)
[0x0000000] : goto allTrue on line 1 : type 6 [0x0000006]
[0x0000001] : goto anyTrue on line 5 : type 6 [0x0000006]
... | 3,822 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/BinaryOperationCF.luau | luau | .luau |
# Luau version: 11 (0x000000B)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 0 (0x0000000)
# Total functions: 1 (0x0000000)
# Constants [27] (0x000001B)
[0x0000000] : "IsAdmin" : type 3 [0x0000003]
[0x0000001] : IsAdmin : type 4 [0x0000004]... | 2,562 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/BinaryOperationSimple.luau | luau | .luau |
# Luau version: 11 (0x000000B)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 0 (0x0000000)
# Total functions: 1 (0x0000000)
# Constants [8] (0x0000008)
[0x0000000] : "x" : type 3 [0x0000003]
[0x0000001] : x : type 4 [0x0000004]
... | 833 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/ChainedComparisons.luau | luau | .luau |
# Luau version: 11 (0x000000B)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 3 (0x0000003)
# Total functions: 4 (0x0000003)
# Constants [5] (0x0000005)
[0x0000000] : goto inRange on line 1 : type 6 [0x0000006]
[0x0000001] : goto clamp on line 1 : type 6 [0x0000006]
... | 2,571 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/ClassMethods.luau | luau | .luau |
# Luau version: 9 (0x0000009)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 5 (0x0000005)
# Total functions: 6 (0x0000005)
# Constants [14] (0x000000E)
[0x0000000] : "__index" : type 3 [0x0000003]
[0x0000001] : goto new on line 4 : type 6 [0x0000006]
... | 4,286 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/Compoundops.luau | luau | .luau |
# Luau version: 11 (0x000000B)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 0 (0x0000000)
# Total functions: 1 (0x0000000)
# Constants [7] (0x0000007)
[0x0000000] : 5 : type 2 [0x0000002]
[0x0000001] : 3 : type 2 [0x0000002]
... | 823 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/DeadDiscards.luau | luau | .luau |
# Luau version: 9 (0x0000009)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 0 (0x0000000)
# Total functions: 1 (0x0000000)
# Constants [12] (0x000000C)
[0x0000000] : "game" : type 3 [0x0000003]
[0x0000001] : game : type 4 [0x0000004]
... | 1,513 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/FunctionMultiReturn.luau | luau | .luau |
# Luau version: 11 (0x000000B)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 1 (0x0000001)
# Total functions: 2 (0x0000001)
# Constants [3] (0x0000003)
[0x0000000] : goto minmax on line 1 : type 6 [0x0000006]
[0x0000001] : "print" : type 3 [0x0000003]
... | 1,351 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/GenericForLoop.luau | luau | .luau |
# Luau version: 11 (0x000000B)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 0 (0x0000000)
# Total functions: 1 (0x0000000)
# Constants [6] (0x0000006)
[0x0000000] : "print" : type 3 [0x0000003]
[0x0000001] : print : type 4 [0x0000004]
... | 960 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/GuardClauses.luau | luau | .luau |
# Luau version: 9 (0x0000009)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 2 (0x0000002)
# Total functions: 3 (0x0000002)
# Constants [7] (0x0000007)
[0x0000000] : goto cached on line 1 : type 6 [0x0000006]
[0x0000001] : goto damage on line 14 : type 6 [0x0000006]
... | 2,438 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/LoopScopedLocals.luau | luau | .luau |
# Luau version: 9 (0x0000009)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 1 (0x0000001)
# Total functions: 2 (0x0000001)
# Constants [1] (0x0000001)
[0x0000000] : goto accumulate on line 1 : type 6 [0x0000006]
# BLOCK 0 [ENTRY] (B0) | PC 0 -> 2
[00000] [00000] [0x0000041] ... | 1,582 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/MethodDefinitions.luau | luau | .luau |
# Luau version: 9 (0x0000009)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 4 (0x0000004)
# Total functions: 5 (0x0000004)
# Constants [13] (0x000000D)
[0x0000000] : goto setup on line 3 : type 6 [0x0000006]
[0x0000001] : "setup" : type 3 [0x0000003]
... | 2,566 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/NestedConditions.luau | luau | .luau |
# Luau version: 9 (0x0000009)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 1 (0x0000001)
# Total functions: 2 (0x0000001)
# Constants [1] (0x0000001)
[0x0000000] : goto scan on line 1 : type 6 [0x0000006]
# BLOCK 0 [ENTRY] (B0) | PC 0 -> 2
[00000] [00000] [0x0000041] ... | 1,379 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/NestedLoops.luau | luau | .luau |
# Luau version: 11 (0x000000B)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 0 (0x0000000)
# Total functions: 1 (0x0000000)
# Constants [3] (0x0000003)
[0x0000000] : 2 : type 2 [0x0000002]
[0x0000001] : "print" : type 3 [0x0000003]
... | 939 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/NumericForLoop.luau | luau | .luau |
# Luau version: 11 (0x000000B)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 0 (0x0000000)
# Total functions: 1 (0x0000000)
# Constants [8] (0x0000008)
[0x0000000] : "print" : type 3 [0x0000003]
[0x0000001] : print : type 4 [0x0000004]
... | 1,288 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/RecursiveFunction.luau | luau | .luau |
# Luau version: 11 (0x000000B)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 2 (0x0000002)
# Total functions: 3 (0x0000002)
# Constants [4] (0x0000004)
[0x0000000] : goto factorial on line 1 : type 6 [0x0000006]
[0x0000001] : goto fibonacci on line 1 : type 6 [0x0000006]
... | 1,832 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/Repeat.luau | luau | .luau |
# Luau version: 11 (0x000000B)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 0 (0x0000000)
# Total functions: 1 (0x0000000)
# Constants [8] (0x0000008)
[0x0000000] : "print" : type 3 [0x0000003]
[0x0000001] : print : type 4 [0x0000004]
... | 821 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/RepeatBreakContinue.luau | luau | .luau |
# Luau version: 9 (0x0000009)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 1 (0x0000001)
# Total functions: 2 (0x0000001)
# Constants [1] (0x0000001)
[0x0000000] : goto poll on line 1 : type 6 [0x0000006]
# BLOCK 0 [ENTRY] (B0) | PC 0 -> 2
[00000] [00000] [0x0000041] ... | 1,822 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/ShortCircuitAssign.luau | luau | .luau |
# Luau version: 9 (0x0000009)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 1 (0x0000001)
# Total functions: 2 (0x0000001)
# Constants [12] (0x000000C)
[0x0000000] : goto resolve on line 1 : type 6 [0x0000006]
[0x0000001] : "cloneref" : type 3 [0x0000003]
... | 2,563 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/TernaryChains.luau | luau | .luau |
# Luau version: 9 (0x0000009)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 3 (0x0000003)
# Total functions: 4 (0x0000003)
# Constants [5] (0x0000005)
[0x0000000] : goto grade on line 1 : type 6 [0x0000006]
[0x0000001] : goto pick on line 5 : type 6 [0x0000006]
... | 2,607 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/WhIleCondition.luau | luau | .luau |
# Luau version: 11 (0x000000B)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 0 (0x0000000)
# Total functions: 1 (0x0000000)
# Constants [7] (0x0000007)
[0x0000000] : "print" : type 3 [0x0000003]
[0x0000001] : print : type 4 [0x0000004]
... | 837 |
boydev-1444/lunaux-decompiler | boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/WhileTrue.luau | luau | .luau |
# Luau version: 11 (0x000000B)
# Types version: 3 (0x0000003)
# Magic key: 1 (0x0000001)
# Main function id: 0 (0x0000000)
# Total functions: 1 (0x0000000)
# Constants [3] (0x0000003)
[0x0000000] : "print" : type 3 [0x0000003]
[0x0000001] : print : type 4 [0x0000004]
... | 420 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/example/init.client.luau | luau | .luau | local Terminal = require(script.luau_term)
local TERMINAL_WIDTH = 80
local TERMINAL_HEIGHT = 30
local TERMINAL_CANVAS_TYPE: "Bitmap" = "Bitmap"
local std = script:WaitForChild("stdio") :: RemoteEvent
local newSession = script:WaitForChild("NewSession") :: RemoteFunction
local parsedFont
if TERMINAL_CANVAS_TYPE == "Bi... | 884 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/example/input.luau | luau | .luau | -- Input handler, works by capturing inputs while the TextBox is focused
-- It saves the last pressed key, then uses it when Enum.UserInputType.TextInput is emitted
-- Using a TextBox allows us to capture all the keys that would otherwise be
-- captured by CoreGui and ignored by ContextActionService, like slash or func... | 1,993 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/src/canvas/bitmap.luau | luau | .luau | --!optimize 2
--!native
--!strict
local Types = require("./types")
type BitmapCanvas = buffer
local BitmapCanvas = {} :: Types.CanvasModule<BitmapCanvas, buffer>
local underlineGlyph = buffer.create(16)
buffer.writeu8(underlineGlyph, 12, 0xFF)
BitmapCanvas.draw = function(canvas, x, y, buf, att, fgColor, bgColor)
... | 1,883 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/src/canvas/init.luau | luau | .luau | local Types = require("./types")
local BitmapCanvas = require("./bitmap")
local TextLabelCanvas = require("./textlabel")
export type BitmapCanvasType = "Bitmap"
export type TextLabelCanvasType = "TextLabel"
export type CanvasType = BitmapCanvasType | TextLabelCanvasType
export type RGBA = Types.RGBA
export type Canvas... | 178 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/src/canvas/textlabel.luau | luau | .luau | local Types = require("./types")
type TextLabelCanvas = {
frame: Frame,
font: {
Regular: Font,
Bold: Font,
Italic: Font,
BoldItalic: Font,
},
lines: { Frame },
labels: { TextLabel },
}
local TextLabelCanvas = {} :: Types.CanvasModule<TextLabelCanvas, string>
local function abgrToColor3(abgr: number): Co... | 1,782 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/src/canvas/types.luau | luau | .luau | export type RGBA = number
export type Canvas<CanvasType> = {
canvas: CanvasType,
length: number,
width: number,
height: number,
cellSize: number,
}
export type Attributes = {
underline: boolean,
bold: boolean,
italic: boolean,
}
export type CanvasModule<CanvasType, CharacterData> = {
draw: (canvas: Canvas<C... | 338 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/src/constants.luau | luau | .luau | local ParserState = table.freeze({
GROUND = 0,
ESCAPE = 1,
ESCAPE_INTERMEDIATE = 2,
CSI_ENTRY = 3,
CSI_PARAM = 4,
CSI_INTERMEDIATE = 5,
CSI_IGNORE = 6,
SOS_PM_APC_STRING = 7,
OSC_STRING = 8,
DCS_ENTRY = 9,
DCS_PARAM = 10,
DCS_IGNORE = 11,
DCS_INTERMEDIATE = 12,
DCS_PASSTHROUGH = 13,
})
local ParserAction... | 2,300 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/src/init.luau | luau | .luau | local Types = require("./types")
local Terminal = require("./terminal")
local parser = require("./parser")
local Constants = require("./constants")
local Canvas = require("./canvas")
local Util = require("./terminal/util")
local parseUnifont = require("./unifont")
local UNIFONT_ASCII = require("./unifont_ascii")
expo... | 320 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/src/parser/init.luau | luau | .luau | local Constants = require("../constants")
local Types = require("../types")
local TransitionTable = require("./transition_table")
local Unicode = require("../unicode")
local ParserState = Constants.ParserState
local ParserAction = Constants.ParserAction
local OscState = Constants.OscState
local TableAccess = Constants... | 1,671 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/src/parser/transition_table.luau | luau | .luau | local Constants = require("../constants")
local ParserState = Constants.ParserState
local ParserAction = Constants.ParserAction
local TableAccess = Constants.TableAccess
local NON_ASCII_PRINTABLE = Constants.NON_ASCII_PRINTABLE
local len = 4095
local buf = buffer.create(len)
local function setDefault(action: number,... | 3,188 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/src/terminal/function_identifier.luau | luau | .luau | -- macro for (a << 8 | b)
local function add(a: number, b: number)
return bit32.bor(bit32.lshift(a, 8), b)
end
local function b(char: string)
return string.byte(char, 1, 1)
end
export type FunctionIdentifier = {
prefix: string?,
intermediates: { string }?,
final: string,
}
local function identifier(id: Function... | 420 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/src/terminal/handlers.luau | luau | .luau | local Canvas = require("../canvas")
local Constants = require("../constants")
local Types = require("../types")
local Util = require("./util")
local Parser = require("../parser")
local Charsets = require("../charsets")
local vector = require("../vector")
local FunctionIdentifier = require("./function_identifier")
loc... | 6,802 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/src/terminal/init.luau | luau | .luau | local parser = require("../parser")
local Canvas = require("../canvas")
local Types = require("../types")
local Handlers = require("./handlers")
local Constants = require("../constants")
local parseUnifont = require("../unifont")
local UNIFONT_ASCII = require("../unifont_ascii")
local vector = require('../vector')
lo... | 629 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/src/terminal/util.luau | luau | .luau | local Types = require("../types")
local Canvas = require("../canvas")
local Constants = require("../constants")
local vector = require("../vector")
local Util = {}
Util.bgColor = function(term: Types.Terminal)
return if term.attributes.inverted then term.fgColor else term.bgColor
end
Util.fgColor = function(term: ... | 1,494 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/src/types.luau | luau | .luau | local Canvas = require("./canvas")
local Charsets = require("./charsets")
export type Cursor = vector
export type Params = {
_length: number,
_isSubParam: boolean,
params: { number },
subParams: { [number]: { number } },
[number]: never,
}
export type Parser = {
currentState: number,
collect: number,
params:... | 696 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/src/unicode.luau | luau | .luau | local CONTINUATION_START = 0x80
local CONTINUATION_END = 0xBF
local INVALID_CODEPOINT = 0xFFFD
local function process(code: number, joinState: number): (boolean, number?)
if joinState > 0 then
if code < CONTINUATION_START or code > CONTINUATION_END then
return true, nil
end
local bytesRemaining = bit32.band... | 327 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/src/unifont_ascii.luau | luau | .luau | -- Printable ASCII characters
-- Used as a fallback if no custom unifont file is supplied
-- https://unifoundry.com/unifont/index.html
return [[
0020:00000000000000000000000000000000
0021:00000000080808080808080008080000
0022:00002222222200000000000000000000
0023:000000001212127E24247E4848480000
0024:00000000083E4948... | 1,624 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/src/vector.luau | luau | .luau | return (typeof(vector) == "table" and vector.create or vector) :: (x: number, y: number, z: number) -> vector
| 32 |
mokiros/luau_term | mokiros-luau_term-6a6cf12/tests/bmp.luau | luau | .luau | return function(imageData: buffer, width: number, height: number)
local extraBytes = width % 4
local rowBytes = 3 * width + extraBytes
local rgbSize = height * rowBytes
local bmpBuffer = buffer.create(54 + rgbSize)
buffer.writeu16(bmpBuffer, 0, 0x4d42)
buffer.writeu32(bmpBuffer, 2, buffer.len(bmpBuffer))
buffer... | 326 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Config/CollisionGroups.server.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Grab the Service:
local PhysicsService = game:GetSer... | 109 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Config/ZoneIdentifiers.server.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Wait for the Events folder:
local Events_Folder = sc... | 800 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Holders/ZonerActor/Scripts/ZoneEngine.Client.client.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
require(`../../../Modules/Internal/Misc/ActorCode`)(scri... | 35 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/External/Zignal.luau | luau | .luau | --!strict
local function DO_NOTHING() end
export type Connection<A...> = {
Connected: boolean,
Disconnect: (self: Connection<A...>) -> (),
_function: (A...) -> (),
_next: Connection<A...>?,
_previous: Connection<A...>,
_signal: Signal<A...>,
}
export type Signal<A...> = {
Connections: num... | 875 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Classes/Groups.luau | luau | .luau | --===========================================================================================================================>
--!optimize 2
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemoryca... | 3,413 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Classes/Plagger.luau | luau | .luau | --===========================================================================================================================>
--!optimize 2
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemoryca... | 4,779 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Classes/Zone/Engine/Detections/Bounds.luau | luau | .luau | --===========================================================================================================================>
--!optimize 2
--!native
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.s... | 7,152 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Classes/Zone/Engine/Detections/Coverages.luau | luau | .luau | --===========================================================================================================================>
--!native
--!optimize 2
--!strict
--===========================================================================================================================>
-- REMINDER:
-- FIRST INDEX OF '... | 2,978 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Classes/Zone/Engine/Detections/Modes.luau | luau | .luau | --===========================================================================================================================>
--!native
--!optimize 2
--!strict
--===========================================================================================================================>
-- REMINDER:
-- FIRST INDEX OF '... | 1,314 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Classes/Zone/Engine/Detections/Targets.luau | luau | .luau | --===========================================================================================================================>
--!optimize 2
--!native
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.s... | 4,835 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Classes/Zone/Engine/Detections/Tracker.luau | luau | .luau | --===========================================================================================================================>
--!optimize 2
--!strict
--!native
--===========================================================================================================================>
-- TrackedItem
-- Author:
-- II... | 5,114 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Classes/Zone/Engine/Detections/init.luau | luau | .luau | --===========================================================================================================================>
--!optimize 2
--!native
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.s... | 11,894 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Classes/Zone/Engine/init.luau | luau | .luau | --===========================================================================================================================>
--!optimize 2
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemoryca... | 6,771 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Classes/Zone/Helpers.luau | luau | .luau | --===========================================================================================================================>
--!optimize 2
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemoryca... | 2,641 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Classes/Zone/Regions.luau | luau | .luau | --===========================================================================================================================>
--!optimize 2
--!native
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.s... | 5,639 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Classes/Zone/SignalHash.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zone]... | 257 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Classes/Zone/WorldModel.luau | luau | .luau | --===========================================================================================================================>
--!optimize 2
--!native
--!strict
--===========================================================================================================================>
-- WorldModel
-- Original Autho... | 1,101 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.