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
--!optimize 2 | |
export type props = {[string]: any} | |
-- return runtime safe pcall wrapper | |
local function generate_safewrap(func: (any...) -> (any...)) | |
return function(...: any...) | |
local success: boolean, result: string? = pcall(func, ...) | |
if success then | |
return result |
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
function FastTween(objects: {Instance}, properties: {[string]: any}, easing: {number? | Enum.EasingStyle? | Enum.EasingDirection?}, delay: number?): Tween | |
-- Check if the first parameter is a table, if not, convert it to a table | |
if type(objects) ~= "table" then | |
objects = {objects} | |
end | |
-- Create an empty array to store Tween objects | |
local tweens: {Tween} = {} | |
-- Loop through each object in the input table |
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
--!strict | |
local Tool = {} | |
Tool.__index = Tool | |
export type ToolSettings = { | |
debounce : number?, | |
activatedFunction : (...any) -> () | |
} |