Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _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
Add Comment
Please, Sign In to add comment