This file contains hidden or 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 useHookState = Matter.useHookState | |
local function async<T..., R...>(callback: (T...) -> (R...), discriminator: string?): (T...) -> (boolean, R...) | |
local existing = useHookState(discriminator, function(existing) | |
if existing.task then | |
task.close(existing.task) | |
end | |
end) | |
This file contains hidden or 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
--[[ | |
Performs greedy meshing on custom Voxel blocks | |
made by Megustral | |
]] | |
local RunService = game:GetService("RunService") |