Skip to content

Instantly share code, notes, and snippets.

@Usering
Usering / HEX to RGB
Created April 8, 2015 06:09
Turns a Hex value into a Color3 (Roblox version of rgb)
function getRGB(hex)
hex = hex:gsub("#","")
return Color3.new(tonumber("0x"..hex:sub(1,2))/255, tonumber("0x"..hex:sub(3,4))/255, tonumber("0x"..hex:sub(5,6))/255)
end
print(getRGB("#F44336"))
easterEgg.BadWorder.list={
"4r5e":1,
"5h1t":1,
"5hit":1,
a55:1,
anal:1,
anus:1,
ar5e:1,
arrse:1,
arse:1,
@Usering
Usering / HttpServiceMarkup.lua
Last active August 29, 2015 13:58
HttpServiceMarkup
HttpService = game.HttpService
InputMsg = "GET http://www.google.com"
RunMarkup = function(markup)
if(not markup)then
return "invalid service"
else
args = {}
for v in markup:gmatch("%S+") do
table.insert(args,v)
end