Skip to content

Instantly share code, notes, and snippets.

@stravant
stravant / GoodSignal.lua
Last active November 16, 2025 08:49
Good Roblox Signal Implementation
--------------------------------------------------------------------------------
-- Batched Yield-Safe Signal Implementation --
-- This is a Signal class which has effectively identical behavior to a --
-- normal RBXScriptSignal, with the only difference being a couple extra --
-- stack frames at the bottom of the stack trace when an error is thrown. --
-- This implementation caches runner coroutines, so the ability to yield in --
-- the signal handlers comes at minimal extra cost over a naive signal --
-- implementation that either always or never spawns a thread. --
-- --
-- API: --
@nezuo
nezuo / remodel-selene.md
Last active January 9, 2023 22:50
Remodel standard library for selene

Instructions

  1. Copy the file below into one called remodel.yml
  2. In selene.toml, replace std = "roblox" with std = "roblox+remodel"
-- black frames not included
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")
local Camera = Workspace.CurrentCamera
local Module = {}
Module.Position = UDim2.new(0, 0, 0, 0)