Skip to content

Instantly share code, notes, and snippets.

@R0bl0x10501050
R0bl0x10501050 / EnhancedSprintSystem.lua
Last active February 18, 2022 01:08
Immersive sprint experience in Roblox
--// Written By: R0bl0x10501050
-- -- -- -- -- -- -- -- -- --
local UIS = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
UIS.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Keyboard then
@R0bl0x10501050
R0bl0x10501050 / undefined.lua
Created October 24, 2021 20:44
Undefined value for Luau
-- Written by R0bl0x10501050
local module = {
['new'] = function()
local self = setmetatable({}, {
__newindex = function()
error("Cannot set property of undefined")
end,
__index = function(tbl, k)
if k == "DEBUG_CHECK" then
local IndexedHashmap = {
['new'] = function()
local self = setmetatable({
_IndexKey = {},
_KeyValue = {}
}, {
__newindex = function(t, k, v)
if not table.find(t._IndexKey, k) then
table.insert(t._IndexKey, k)
end
@R0bl0x10501050
R0bl0x10501050 / xmldecode.lua
Created September 3, 2021 22:16
XMLDecode in Roblox Luau!
type table = {any}
type dict = {[string|boolean]: any}
local specialTags, doNotNeedClosingTag = {}, {}
local find
find = function(originalTable, findValue)
for index, wrappedTable in pairs(originalTable) do
if wrappedTable == findValue then
return wrappedTable
@R0bl0x10501050
R0bl0x10501050 / invert-color.lua
Created August 4, 2021 01:08
Invert a hex or RGB table (in R,G,B order).
-- Based on:
-- https://stackoverflow.com/questions/35969656/
local base16 = {
['0'] = 'F',
['1'] = 'E',
['2'] = 'D',
['3'] = 'C',
['4'] = 'B',
['5'] = 'A',
@R0bl0x10501050
R0bl0x10501050 / invert-color-roblox.lua
Last active August 4, 2021 01:22
Invert a hex or Color3 value. Created for Roblox Luau developers.
-- Based on:
-- https://stackoverflow.com/questions/35969656/
local base16 = {
['0'] = 'F',
['1'] = 'E',
['2'] = 'D',
['3'] = 'C',
['4'] = 'B',
['5'] = 'A',