Created by Nexity#3200
Features:
- SCREENSHARE YOUR ROBLOX SCREEN TO THE BOOTH
- What it does is it shows your roblox screen (in game without guis) and updates it to your booth 30 time
_G.Enabled = true
if not _G.Enabled then
d()
end
local camera = game.Workspace.CurrentCamera
local screensize = camera.ViewportSize
local updater = game:GetService("ReplicatedStorage").CustomiseBooth
function update(text)
local args = {
[1] = "Update",
[2] = {
["DescriptionText"] = text,
["ImageId"] = 0
}
}
updater:FireServer(unpack(args))
end
local shirtpooll = {"π§", "π", "π", "π"}
local shirtpool = {
["π§"] = "π",
["π"] = "π΄",
["π"] = "π³",
["π"] = "π΅",
}
local colours = {
["π€"] = {0, 0, 0},
["πΏ"] = {192, 192, 192},
["π"] = {128, 128, 128},
["π€"] = {255, 255, 255},
["π"]= {128, 0, 0},
["β€οΈ"] = {255, 0, 0},
["π"] = {128, 0, 128},
["πΈ"] = {255, 0, 255},
["π³"] = {0, 128, 0},
["π"] = {0, 255, 0},
["π¦"] = {128, 128, 0},
["π"] = {255, 255, 0},
["π΅"] = {0, 0, 128},
["π"] = {0, 0, 255},
["π§ͺ"] = {0, 128, 128},
["π"] = {0, 255, 255},
}
function getcolorforrange(r, g, b)
local closestint = 100000000000000000
local closestcolour = ""
for i, colour in pairs(colours) do
local totalint = ((r - colour[1])^2) + ((g - colour[2])^2) + ((b - colour[3])^2) ^ (1/2)
if totalint < closestint then
closestint = totalint
closestcolour = i
end
end
return closestcolour
end
local mx = 61
local my = 30
while _G.Enabled do
local topost = ""
for y=1, screensize.y, math.floor(screensize.y / my) do
for x=1, screensize.x, math.floor(screensize.x / mx) do
local ray = camera:ScreenPointToRay(x, y)
local rayResult = game.Workspace:Raycast(ray.Origin, ray.Direction * 5000)
local rc
if rayResult then
local ri = rayResult.Instance
if ri.Parent:FindFirstChild("Shirt") then
if ri.Parent:FindFirstChild("snes") then
local sc = ri.Parent.snes.Value
topost = topost .. shirtpooll[sc]
else
local sval = Instance.new("IntValue")
sval.Name = "snes"
sval.Parent = rayResult.Instance.Parent
sval.Value = math.random(1, #shirtpooll)
topost = topost .. shirtpooll[sval.Value]
end
elseif ri.Parent:FindFirstChild("Pants") then
if ri.Parent:FindFirstChild("snes") then
local sc = ri.Parent.snes.Value
topost = topost .. shirtpool[shirtpooll[sc]]
else
local sval = Instance.new("IntValue")
sval.Name = "snes"
sval.Parent = rayResult.Instance.Parent
sval.Value = math.random(1, #shirtpooll)
topost = topost .. shirtpool[shirtpooll[sval.Value]]
end
else
rc = ri.Color
topost = topost .. getcolorforrange(rc.R * 255, rc.G * 255, rc.B * 255)
end
else
topost = topost .. "π"
end
end
topost = topost .. "\n"
end
coroutine.wrap(update)(topost)
task.wait(.03)
end