This file contains 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 mode = 0 -- 0 is ClassName, 1 is Name, 2 is parent, 3 is FullName | |
local printRate = 60 -- set to math.huge to disable | |
-- You can add a BindableEvent named PrintStats to this script and fire it to print stats | |
--- | |
local changes = {} | |
local GetFullName = workspace.GetFullName | |
game.ItemChanged:connect(function(item, prop) |
This file contains 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
--[[ | |
Version 4: | |
Fixed garbage collection detection. | |
Edit 3: | |
Clarified/fixed some terminology. (comments only) | |
Version 2: | |
Made it not prevent garbage collection by using ObjectValues | |
Version 1: | |
Initial | |
This file contains 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 instanceDestroyed = require(script.Parent.MainModule) | |
do | |
local a = Instance.new("Part") | |
instanceDestroyed(a, function() | |
print("Test 1 destroyed") | |
end) | |
a:Destroy() | |
end |
This file contains 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 string_gmatch = string.gmatch | |
local function getWordDashSpaceTable(txt, tbl) | |
local tbl, numTbl = tbl or {}, 0 | |
for word1, dash, word2, space in string_gmatch(txt, "([^%-%s]*)(%-)(%S*)(%s*)") do | |
tbl[numTbl + 1] = word1 | |
tbl[numTbl + 2] = dash | |
tbl[numTbl + 3] = word2 | |
tbl[numTbl + 4] = space | |
numTbl = numTbl + 4 | |
end |
This file contains 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
--[[ API Reference | |
Class Yield | |
METHODS | |
static Yield(f: function) --> yield: Yield | |
static :new(f: function) --> yield: Yield | |
Creates a new Yield that will run `f` when resumed | |
static :running() --> Yield currentYield | |
Returns the Yield that is currently running, or nil if none. | |
static :yield(... [1]) --> ... [2] |
This file contains 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
None | |
Backspace | |
Delete | |
Tab | |
Clear | |
Return | |
Pause | |
Escape | |
Space | |
Keypad0 |
This file contains 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
--[[ | |
Use: | |
On success: | |
local success, return1, return2, ... = tpcall(func, arg1, arg2, ...) | |
On error: | |
local success, error, traceback = tpcall(func, arg1, arg2, ...) | |
--]] | |
--[[ runner.lua: belongs inside tpcall.lua | |
return setmetatable({}, { |
This file contains 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 placePlugins = game:GetService('ServerStorage'):WaitForChild('PlacePlugins', math.huge) | |
local loaded = {} | |
local function loadPlugin(name, pluginBase) | |
local newPlugin = PluginManager():CreatePlugin() | |
newPlugin.Name = name | |
if typeof(pluginBase) == "Instance" then | |
pluginBase.Parent = newPlugin | |
else |
This file contains 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 retired_lanes = {} | |
local function thread_func(controller) | |
while true do | |
local key, func_args = controller:receive(10, "func_args") | |
if key == lanes.cancel_error then | |
break | |
end | |
if func_args then |
This file contains 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
-- Compiled with roblox-ts v0.4.0 | |
local TS = require(game:GetService("ReplicatedStorage"):WaitForChild("rbxts_include"):WaitForChild("RuntimeLib")) | |
local function example() | |
while true do | |
local _0, _1 = TS.try(function() | |
return TS.TRY_RETURN, {} | |
end, function(err) | |
return TS.TRY_CONTINUE | |
end, function() | |
return TS.TRY_BREAK |
OlderNewer