Rgb to hex lua

rgb to hex lua — passing a table like {255, 100, 20} function application:rgbToHex(rgb) local hexadecimal = ‘0X’ for key, value in pairs(rgb) do local hex = ” while(value > 0)do local index = math.fmod(value, 16) + 1 value = math.floor(value / 16) hex = string.sub(‘0123456789ABCDEF’, index, index) .. hex end if(string.len(hex) == 0)then hex […]

Rgb to hex lua Read More

Remote functions and events example in lua

Remote functions and events example in lua local NewBlewPart = game.Workspace.Neon –Make a Part and name i To “Neon” NewBlewPart.Touched:Connect(function() print(“You Touched Me!”) –Says a Dialogue When Touched The Part “NewBlewPart” Which is Just a Variable For a Base Part. wait(1) end) –Script Officially Made By Rigby#9052 on Discord

Remote functions and events example in lua Read More

Print the sum of all the odd or even numbers until a given number lua

Print the sum of all the odd or even numbers until a given number lua local function Solve(Range, Limit, CrashRange, OddMode) local Range = Range or 1 local Limit = Limit or 1 local CrashRange = CrashRange or 999999999 local OddMode = OddMode or false local Even = {} local Odd = {} local Result […]

Print the sum of all the odd or even numbers until a given number lua Read More

Print table lua

print table lua function print_table(node) local cache, stack, output = {},{},{} local depth = 1 local output_str = “{\n” while true do local size = 0 for k,v in pairs(node) do size = size + 1 end local cur_index = 1 for k,v in pairs(node) do if (cache[node] == nil) or (cur_index >= cache[node]) then […]

Print table lua Read More