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 | |
-- TextChatUtil | |
-- simple utility module for TextChat | |
-- @Kalrnlo | |
-- 21/03/2023 | |
local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
local TextChatService = game:GetService("TextChatService") | |
local RunService = game:GetService("RunService") |
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 | |
-- ConsoleFormatter | |
-- A utility module for easily formatting outputs for print, warn and errors! | |
-- @Kalrnlo | |
-- 30/12/2023 | |
export type OutputType = "Critical" | "Warning" | "Error" | "Log" | "Debug" | "1" | "2" | "3" | "4" | "5" | |
local DefualtFormat = "[%s][%s] :: " |
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 | |
-- GetBoxSides | |
-- Simple function for getting all of a box's sides | |
-- Modified From: https://devforum.roblox.com/t/how-do-i-find-the-top-and-bottom-of-a-part/1082206 | |
-- @Kalrnlo | |
-- 25/10/2023 | |
return function(BoxSize: Vector3, BoxCFrame: CFrame?) | |
local BoxCFrame = BoxCFrame or CFrame.new() |
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 | |
-- GetBoxCorners | |
-- Simple function for getting all of an objects corners | |
-- Modified From: https://github.com/FrostDracony/Roblox/blob/master/Tutorials/GetCornersOfAllBaseParts/GetCornersOfPart.md | |
-- @Kalrnlo | |
-- 25/10/2023 | |
return function(BoxSize: Vector3, BoxCFrame: CFrame?) | |
local BoxCFrame = BoxCFrame or CFrame.new() |
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 | |
-- RichTextUtil | |
-- simple utility module for rich text | |
-- @Kalrnlo | |
-- 02/12/2023 | |
local RichTextUtil = {} | |
-- Taken from |
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 | |
-- GameJoinUrlUtil | |
-- A utility module for generation join links for any game | |
-- with url enocoding and launchdata encoding included | |
-- @Kalrnlo | |
-- 30/11/2023 | |
local HTTPService = game:GetService("HttpService") |
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
type void = boolean? | |
event PlayerLoaded = { | |
from: Client, | |
type: Reliable, | |
call: SingleAsync, | |
data: void | |
} |
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 | |
-- Caller | |
-- a simple signal alterative, thats a function that returns 2 functions | |
-- first is for adding a callback and returns a function to disconnect | |
-- second is for running the callbacks with the given values | |
-- inspired by bin from util.redblox.dev | |
-- 09/02/2024 | |
-- @Kalrnlo |
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 function AssetTypeToAccesoryType(AssetType: Enum.AssetType): Enum.AccessoryType | |
local Success, EnumItem = pcall(function(EnumItemName) | |
return if Enum.AccessoryType[EnumItemName] ~= nil then Enum.AccessoryType[EnumItemName] else nil | |
end, string.split(AssetType.Name, "Acc")[1]) | |
return if Success then EnumItem else Enum.AccessoryType.Unknown | |
end | |
print(AssetTypeToAccesoryType(Enum.AssetType.WaistAccessory)) --> Enum.AccessoryType.Waist | |
print(AssetTypeToAccesoryType(Enum.AssetType.Hat)) --> Enum.AccessoryType.Hat |
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
--!native | |
-- abbrev timezone | |
-- simple function for getting a timezone in its abbreviated form | |
-- ie EST (Eastern Standard Time) | |
local GSUB = string.gsub | |
local DATE = os.date | |
local function abbrev_timezone(offset: number?): string |
OlderNewer