repo
stringclasses
302 values
file_path
stringlengths
18
241
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
76
697k
tokens
int64
10
271k
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
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/entity/add_component.luau
luau
.luau
local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local query_parser = require(script.Parent.Parent.Parent.Parent.server.query_parser) local create = vide.create local source = vide.source local show = vide.show type props = {...
701
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/entity/editor.luau
luau
.luau
local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local create = vide.create local show = vide.show type props = { components: () -> {[string]: string}, changes: vide.Source<{[string]: string}>, editing: vide.Source<false |...
723
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/entity/init.luau
luau
.luau
local RunService = game:GetService("RunService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local loop = require(script.Parent.Parent.Parent.modules.loop) local widget = require(script.widget) local source = vide.source local cleanup = vide.cleanup local overview_entity = { class_name = "app" :: ...
347
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/entity/systems/obtain_entity_data.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.Parent.Parent.vide) local queue = require(script.Parent.Parent.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.Parent.Parent.modules.remotes) local effect = vide.effect local cleanup = vide.cleanup local batch = vide.batch ...
464
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/entity/widget.luau
luau
.luau
local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local add_component = require(script.Parent.add_component) local ed...
2,273
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/home/init.luau
luau
.luau
local RunService = game:GetService("RunService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local loop = require(script.Parent.Parent.Parent.modules.loop) local widget = require(script.widget) local cleanup = vide.cleanup local home = { class_name = "app" :: "app", name = "Home" } function home...
159
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/home/widget.luau
luau
.luau
local Players = game:GetService("Players") local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local spawn_app = require(script.Parent.Parent.Parent.spawn_app) local overview_scheduler = require(script.Parent.Parent.overview_sche...
1,146
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/overview_scheduler/init.luau
luau
.luau
local RunService = game:GetService("RunService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local loop = require(script.Parent.Parent.Parent.modules.loop) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local widget = require(script.widget) local source = vide.source local clea...
339
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/overview_scheduler/stack_bar.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local create = vide.create local indexes = vide.indexes local derive = vide.derive type stack_bar = { values: () -> {{value: number, color: Color3}}, selected: (number) -> () } return function(props: stack_bar) local total = derive(function() ...
236
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/overview_scheduler/systems/get_scheduler_data.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.Parent.Parent.vide) local queue = require(script.Parent.Parent.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.Parent.Parent.modules.remotes) local types = require(script.Parent.Parent.Parent.Parent.Parent.modules.types) lo...
685
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/overview_scheduler/widget.luau
luau
.luau
local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local convert_units = require(script.Parent.Parent.Parent.Parent.modules.convert_units) local types = require(script.Parent.Parent.Parent.Parent.modules.types) local spawn_app = ...
2,513
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/registry/init.luau
luau
.luau
local ContextActionService = game:GetService("ContextActionService") local RunService = game:GetService("RunService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local loop = require(script.Parent.Parent.Parent.modules.loop) local spawn_app = require(script.Parent.Parent.spawn_app) local entity_widge...
799
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/registry/systems/highlight_workspace_entity.luau
luau
.luau
local queue = require(script.Parent.Parent.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.Parent.Parent.modules.remotes) type Context = { host: Player | "server", vm: number, id: number, enable_pick: () -> boolean, entity_hovering_over: (string) -> (), set_entity: (numbe...
201
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/registry/systems/obtain_query_data.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.Parent.Parent.vide) local queue = require(script.Parent.Parent.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.Parent.Parent.modules.remotes) local effect = vide.effect local batch = vide.batch local cleanup = vide.cleanup ...
760
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/registry/systems/send_workspace_entity.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local remotes = require(script.Parent.Parent.Parent.Parent.Parent.modules.remotes) type Context = { host: Player | "server", vm: number, id: number, enable_pick: () -> boolean, } return function(context: Context) if context.enable_pick() == false t...
152
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/registry/systems/validate_query.luau
luau
.luau
local Players = game:GetService("Players") local vide = require(script.Parent.Parent.Parent.Parent.Parent.Parent.vide) local queue = require(script.Parent.Parent.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.Parent.Parent.modules.remotes) local effect = vide.effect type Cont...
453
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/registry/widget.luau
luau
.luau
local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local tooltip = require(script.Parent.Parent.Parent.components.tool...
2,750
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/system/init.luau
luau
.luau
local RunService = game:GetService("RunService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local loop = require(script.Parent.Parent.Parent.modules.loop) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local types = require(script.Parent.Parent.Parent.modules.types) local widge...
455
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/system/systems/replicate.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.Parent.Parent.vide) local queue = require(script.Parent.Parent.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.Parent.Parent.modules.remotes) local types = require(script.Parent.Parent.Parent.Parent.Parent.modules.types) lo...
584
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/system/watch_tracker.luau
luau
.luau
local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local types = require(script.Parent.Parent.Parent.Parent.modules.types) local tooltip = require(script.Parent.Parent.Parent.components.tooltip) local virtualscroller_horizontal =...
1,482
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/system/widget.luau
luau
.luau
local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local types = require(script.Parent.Parent.Parent.Parent.modules.types) local watch_tracker = require(script.Parent.watch_tracker) type props = { host: "server" | Player, vm: ...
217
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/components/tooltip.luau
luau
.luau
local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local pebble = require(script.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.vide) local create = vide.create local source = vide.source local cleanup = vide.clean...
352
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/components/virtualscroller_horizontal.luau
luau
.luau
local pebble = require(script.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.vide) local create = vide.create local source = vide.source local values = vide.values local changed = vide.changed local effect = vide.effect local untrack = vide.untrack type can<T> = T | () -> ...
1,136
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/init.luau
luau
.luau
local entity = require(script.apps.entity) local home = require(script.apps.home) local overview_scheduler = require(script.apps.overview_scheduler) local registry = require(script.apps.registry) local spawn_app = require(script.spawn_app) return { apps = { home = home, entity = entity, scheduler = overview_sc...
96
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/spawn_app.luau
luau
.luau
local Players = game:GetService("Players") local vide = require(script.Parent.Parent.Parent.vide) local types = require(script.Parent.Parent.modules.types) local destroy_fn = {} local function unmount_all() for destroy in destroy_fn do destroy() end end local function spawn_app<T>(app: types.Application<T>, pro...
169
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/init.luau
luau
.luau
local jecs = require(script.Parent.jecs) local traffic_check = require(script.modules.traffic_check) local types = require(script.modules.types) local vm_id = require(script.modules.vm_id) local server = require(script.server) local public = require(script.server.public) local scheduler = require(script.server.schedule...
402
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/average.luau
luau
.luau
local function average(n: {number}) local sum = 0 for i, v in n do sum += v end return sum / #n end return average
40
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/convert_units.luau
luau
.luau
local function convert_units(unit: string, value: number): (string) local s = math.sign(value) value = math.abs(value) local prefixes = { [4] = "T", [3] ="G", [2] ="M", [1] = "k", [0] = " ", [-1] = "m", [-2] = "u", [-3] = "n", [-4] = "p" ...
253
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/hash_connector.luau
luau
.luau
local types = require(script.Parent.types) return function(connector: types.IncomingConnector | types.OutgoingConnector) return `{connector.host}\0{connector.from_vm or connector.to_vm}` end
39
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/loop.luau
luau
.luau
local scheduler = require(script.Parent.Parent.server.scheduler) type Array<T> = { T } export type System = (any, number) -> ...(any, number) -> () type GroupInfo = { i: number?, o: number? } type SystemGroup = { interval: number, offset: number, dt: number, [number]: { id: number, na...
597
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/net.luau
luau
.luau
--[[ net is a utility library designed to handle connections to other actors and the server for me. ]] local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local signal = require(script.Parent.signal) local vm_id...
1,346
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/queue.luau
luau
.luau
--- Licensed under MIT from centau_ri export type Queue<T...> = typeof(setmetatable( {} :: { add: (self: Queue<T...>, T...) -> (), clear: (self: Queue<T...>) -> (), iter: (self: Queue<T...>) -> () -> T..., }, {} :: { __len: (self: Queue<T...>) -> number, __iter: (self: Queue<T...>) -> () -> T..., } )) ty...
719
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/reverse_connector.luau
luau
.luau
--!nocheck local types = require(script.Parent.types) local function reverse(connector: types.IncomingConnector): types.OutgoingConnector return { host = connector.host, to_vm = connector.from_vm, } end return reverse
51
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/signal.luau
luau
.luau
--[[ A rudimentary signal class. Yielding may cause bugs. ]] local signal = {} signal.__index = signal type Connection = { disconnect: (any?) -> (), reconnect: (any?) -> () } export type Signal<T... = ...unknown> = { class_name: "Signal", connect: (Signal<T...>, callback: (T...) -> ()) -> Connection, wait: (S...
422
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/traffic_check.luau
luau
.luau
local Players = game:GetService("Players") --[[ a utility library to handle checking traffic and determining if the sender is permitted to send the given data. ]] local signal = require(script.Parent.signal) local traffic_check = {} local whitelist_player_to = {} local on_fail, fire = signal() --- A function tha...
553
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/types.luau
luau
.luau
local jecs = require(script.Parent.Parent.Parent.jecs) type host = "client" | "server" export type IncomingConnector = { host: Player | "server", from_vm: number, to_vm: number } export type OutgoingConnector = { host: Player | "server", to_vm: number?, -- not specifying a vm makes it received by all from_vm: n...
800
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/videx.luau
luau
.luau
-------------------------------------------------------------------------------- -- videx/store.luau -------------------------------------------------------------------------------- local vide = require(script.Parent.Parent.Parent.vide) local source = vide.source local NULL = newproxy() local Store = {} --[=[ Create...
451
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/modules/vm_id.luau
luau
.luau
--[[ Provides a unique identifier for a VM. This currently cannot be tested unless there is some parallel system for jest. ]] local SharedTableRegistry = game:GetService("SharedTableRegistry") local shared_table = SharedTableRegistry:GetSharedTable("_gorp_common_vm_count") shared_table.id = shared_table.id or 0 r...
79
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/init.luau
luau
.luau
local Players = game:GetService("Players") local RunService = game:GetService("RunService") local loop = require(script.Parent.modules.loop) local remotes = require(script.Parent.modules.remotes) local traffic_check = require(script.Parent.modules.traffic_check) local vm_id = require(script.Parent.modules.vm_id) local...
224
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/public.luau
luau
.luau
--[[ anything in here is considered "public" and will be visible to jabby clients ]] local self = { updated = false, } :: { updated: boolean, [number]: any } return self
45
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/scheduler.luau
luau
.luau
local types = require(script.Parent.Parent.modules.types) local watch = require(script.Parent.watch) type SystemId = types.SystemId type SystemSettingData = types.SystemSettingData type SystemTag = types.SystemTag type SystemData = types.SystemData type ProcessingFrame = { started_at: number } type SystemFrame = typ...
1,270
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/systems/entity.luau
luau
.luau
local jecs = require(script.Parent.Parent.Parent.Parent.jecs) local lon = require(script.Parent.Parent.Parent.modules.lon) local queue = require(script.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local reverse_connector = require(script.Parent.Parent.Parent.m...
1,930
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/systems/mouse_pointer.luau
luau
.luau
local jecs = require(script.Parent.Parent.Parent.Parent.jecs) local queue = require(script.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local reverse_connector = require(script.Parent.Parent.Parent.modules.reverse_connector) local traffic_check = require(scrip...
1,487
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/systems/ping.luau
luau
.luau
local Players = game:GetService("Players") local net = require(script.Parent.Parent.Parent.modules.net) local queue = require(script.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local reverse_connector = require(script.Parent.Parent.Parent.modules.reverse_con...
173
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/systems/replicate_core.luau
luau
.luau
local queue = require(script.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local reverse_connector = require(script.Parent.Parent.Parent.modules.reverse_connector) local traffic_check = require(script.Parent.Parent.Parent.modules.traffic_check) local public = r...
448
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/systems/replicate_registry.luau
luau
.luau
local jecs = require(script.Parent.Parent.Parent.Parent.jecs) local queue = require(script.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local reverse_connector = require(script.Parent.Parent.Parent.modules.reverse_connector) local traffic_check = require(scrip...
3,422
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/systems/replicate_scheduler.luau
luau
.luau
--!nolint LocalShadow local hash = require(script.Parent.Parent.Parent.modules.hash_connector) local queue = require(script.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local reverse_connector = require(script.Parent.Parent.Parent.modules.reverse_connector) lo...
747
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/systems/replicate_system_watch.luau
luau
.luau
--[[ Handles the API for the system watch. Users will be able to add watches to their systems to track changes. Users will be able to learn about what actions a system performs on a jecs world through this. Hooked API's: component() entity() remove() clear() delete() add() set() ]] local jecs = require(script.Par...
1,233
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/watch.luau
luau
.luau
local types = require(script.Parent.Parent.modules.types) local world_hook = require(script.Parent.world_hook) local NIL = newproxy() type ChangeTypes = "remove" | "clear" | "delete" | "add" | "set" | "entity" | "component" type Changes = types.WatchLoggedChanges export type SystemWatch = { --- enables Lua Object N...
731
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/server/world_hook.luau
luau
.luau
local jecs = require(script.Parent.Parent.Parent.jecs) local world = jecs.World.new() local function i_hook_onto(key: string, hooks: {(...any) -> ()}) local method: any = world[key] assert(typeof(method) == "function", "can only hook onto functions") -- create a new wrapper function local function run_hook(......
358
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/ServerScriptService/main.server.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local start = require(ReplicatedStorage.std.start) start(script.Parent:WaitForChild("systems"):GetChildren())
37
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/ServerScriptService/systems/mob_avoid.luau
luau
.luau
--!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") local std = ReplicatedStorage.std local world = require(std.world) local cts = require(std.components) local scheduler = require(std.scheduler) local phases = require(std.phases) local Mob = cts.Mob local Transform = ct...
666
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/ServerScriptService/systems/mob_move.luau
luau
.luau
-- ServerScriptService/systems/mob_move.luau --!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") local Workspace = game:GetService("Workspace") local std = ReplicatedStorage.std local world = require(std.world) local cts = require(std.components) local scheduler = require(std.sc...
940
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/ServerScriptService/systems/players.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local std = ReplicatedStorage.std local ref = require(std.ref) local cts = require(std.components) local world = require(std.world) local Player = cts.Player local Character = cts.Character local conn = {} local function playersAdded(player: Player) lo...
207
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/StarterGui/ScreenGui/MobCount/LocalScript.client.luau
luau
.luau
local label = script.Parent local replicated = game:GetService("ReplicatedStorage") local count = replicated:WaitForChild("Count") count.Changed:Connect(function(value) label.Text = "Mob Count :" .. value end)
48
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/StarterPlayer/StarterPlayerScripts/Sky.client.luau
luau
.luau
local Lighting = game:GetService("Lighting") local RunService = game:GetService("RunService") local Sky = Lighting:WaitForChild("Sky") :: Sky local TOTAL_TIME = 600-- 5 minutes in seconds local ROTATION_SPEED = 360 / TOTAL_TIME -- 1.2 degrees per second RunService.RenderStepped:Connect(function(dt) local ori = Sky...
123
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/StarterPlayer/StarterPlayerScripts/systems/MobDebug.luau
luau
.luau
--!strict local RunService = game:GetService("RunService") local NPC_HITBOXES = workspace:WaitForChild("NPC_Hitboxes") type Visual = { range: BasePart?, ray: BasePart?, gui: BillboardGui, label: TextLabel, } local VISUALS: {[BasePart]: Visual} = {} local function makeBillboard(hitbox: BasePart): Vis...
1,572
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/StarterPlayer/StarterPlayerScripts/systems/move.luau
luau
.luau
--StarterPlayer/StarterPlayerScripts/systems/move.luau --!optimize 2 --!native --!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") local std = ReplicatedStorage.std local world = require(std.world) local scheduler = require(std.scheduler) local cts = require(std.components) local Model = cts.Mode...
839
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/StarterPlayer/StarterPlayerScripts/systems/syncMobs.luau
luau
.luau
--StarterPlayer/StarterPlayerScripts/systems/syncMobs.luau May move to replicated later --!optimize 2 --!native --!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") local std = ReplicatedStorage.std local ref = require(std.ref) local world = require(std.world) local cts = require(std.components) l...
505
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/jecs.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") return require(ReplicatedStorage.Packages.jecs)
24
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/bt.luau
luau
.luau
--!optimize 2 --!native -- original author @centau local FAILURE = -1 local RUNNING = 0 local SUCCESS = 1 local function SEQUENCE(nodes) return function(...) for _, node in nodes do local status = node(...) if status <= RUNNING then return status end end return SUCCESS end end local functio...
160
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/collect.luau
luau
.luau
--!nonstrict --[[ local signal = Signal.new() :: Signal.Signal<string, string> local events = collect(signal) local function system(world) for id, str1, str2 in events do -- end end ]] --[[ original author by @memorycode MIT License Copyright (c) 2024 Michael Permission is hereby granted, free of charge...
442
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/interval.luau
luau
.luau
local function interval(s) local pin local function throttle() if not pin then pin = os.clock() end local elapsed = os.clock() - pin > s if elapsed then pin = os.clock() end return elapsed end return throttle end return interval
68
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/mailbox.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local std = ReplicatedStorage.std -- Mailbox.lua (singleton) local world = require(std.world) local C = require(std.components) local M = { sys = nil, bufByComp = {} } -- one global mailbox local function ensureSYS(comp) if M.sys then return M.sy...
317
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/phases.luau
luau
.luau
local std = game:GetService("ReplicatedStorage").std local Players = game:GetService("Players") local RunService = game:GetService("RunService") local scheduler = require(std.scheduler) local PHASE = scheduler.PHASE -- ===== Phase Creation with Validation ===== local phases = {} local function createPhase(name: stri...
912
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/ref.luau
luau
.luau
local world = require(script.Parent.world) local jecs = require(game:GetService("ReplicatedStorage").ecs) local refs: {[any]: jecs.Entity} = {} local function fini(key): () -> () return function() refs[key] = nil end end local function noop() end local function ref(key): (jecs.Entity, () -> ()) if not key then ...
144
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/scheduler.luau
luau
.luau
--!native --!optimize 2 local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local jabby = require(ReplicatedStorage.Packages.jabby) local jecs = require(ReplicatedStorage.ecs) local pair = jecs.pair local Name = jecs.Name type World = jecs.World type Entity<T...
1,051
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/start.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local jabby = require(ReplicatedStorage.Packages.jabby) local std = ReplicatedStorage.std local scheduler = require(std.scheduler) local world = re...
234
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/world.luau
luau
.luau
local jecs = require(game:GetService("ReplicatedStorage").ecs) -- I like the idea of only having the world be a singleton. local world = jecs.World.new() :: jecs.World return world
44
seaofvoices/luau-path
seaofvoices-luau-path-3c4ad71/src/Component.luau
luau
.luau
local Prefix = require('./Prefix') local sysPath = require('./sys/path') local MAIN_SEPARATOR_STR = sysPath.MAIN_SEPARATOR_STR type Prefix = Prefix.Prefix export type PrefixComponent = { type: 'prefix', raw: string, parsed: Prefix, } type NormalComponent = { type: 'normal', value: string } type Componen...
691
seaofvoices/luau-path
seaofvoices-luau-path-3c4ad71/src/Prefix.luau
luau
.luau
export type PrefixEnum = { type: 'Verbatim', value: string } | { type: 'VerbatimUNC', hostName: string, shareName: string } | { type: 'VerbatimDisk', value: string } | { type: 'DeviceNS', value: string } | { type: 'UNC', hostName: string, shareName: string } | { type: 'Disk', value: string } ex...
1,169
seaofvoices/luau-path
seaofvoices-luau-path-3c4ad71/src/Rev.luau
luau
.luau
local Disk = require('@pkg/luau-disk') local Array = Disk.Array export type Rev<T> = { next: (self: Rev<T>) -> T?, collect: (self: Rev<T>) -> { T }, rev: (self: Rev<T>) -> Rev<T>, -- DoubleEndedIterator nextBack: (self: Rev<T>) -> T?, clone: (self: Rev<T>) -> Rev<T>, } type DoubleEndedIterat...
532
seaofvoices/luau-path
seaofvoices-luau-path-3c4ad71/src/__tests__/Issues.test.luau
luau
.luau
-- additional tests that were reported local jestGlobals = require('@pkg/@jsdotlua/jest-globals') local Path = require('../Path') local expect = jestGlobals.expect local it = jestGlobals.it local describe = jestGlobals.describe describe('issue #3', function() it(`set empty extension on 'src/abc' gives 'src/abc'...
136
seaofvoices/luau-path
seaofvoices-luau-path-3c4ad71/src/__tests__/Prefix.test.luau
luau
.luau
local Disk = require('@pkg/luau-disk') local jestGlobals = require('@pkg/@jsdotlua/jest-globals') local Path = require('../Path') local Prefix = require('../Prefix') local sysPath = require('../sys/path') local Array = Disk.Array local Map = Disk.Map type Prefix = Prefix.Prefix -- When running tests in Roblox Studi...
641
seaofvoices/luau-path
seaofvoices-luau-path-3c4ad71/src/init.luau
luau
.luau
local Path = require('./Path') export type Path = Path.Path export type AsPath = Path.AsPath return { Path = Path, }
31
seaofvoices/luau-path
seaofvoices-luau-path-3c4ad71/src/iterAfter.luau
luau
.luau
local Component = require('./Component') type Component = Component.Component type ComponentIterator = { next: (self: ComponentIterator) -> Component? } type Clone<T> = { clone: (T) -> T } local function iterAfter<T>( iter: T & ComponentIterator & Clone<ComponentIterator>, prefix: T & ComponentIterator ): (T...
174
seaofvoices/luau-path
seaofvoices-luau-path-3c4ad71/src/sys/path/PrefixParser.luau
luau
.luau
local PrefixParserSlice = require('./PrefixParserSlice') type PrefixParserSlice = PrefixParserSlice.PrefixParserSlice export type PrefixParser = { asSlice: (self: PrefixParser) -> PrefixParserSlice, } type Private = { _path: string, _prefix: string, _length: number, } type PrivatePrefixParser = Prefi...
311
seaofvoices/luau-path
seaofvoices-luau-path-3c4ad71/src/sys/path/PrefixParserSlice.luau
luau
.luau
export type PrefixParserSlice = { stripPrefix: (self: PrefixParserSlice, prefix: string) -> PrefixParserSlice?, prefixBytes: (self: PrefixParserSlice) -> string, finish: (self: PrefixParserSlice) -> string, } type Private = { _path: string, _prefix: string, _index: number, } type PrivatePrefixP...
417
seaofvoices/luau-path
seaofvoices-luau-path-3c4ad71/src/sys/path/init.luau
luau
.luau
local Prefix = require('../../Prefix') local parsePrefixWindows = require('./parsePrefix') type Prefix = Prefix.Prefix local MAIN_SEPARATOR_STR = if _G.SYS_PATH_SEPARATOR == '\\' or _G.SYS_PATH_SEPARATOR == '/' then _G.SYS_PATH_SEPARATOR elseif _G.LUA_ENV == 'lune' and (require :: any)('@lune/process'...
330
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