0% found this document useful (0 votes)
6 views2 pages

Zs GK45 JC

The script enables a feature that updates a display based on the colors and shirts detected in the game environment. It utilizes raycasting to analyze objects in the workspace and categorize them into shirts or pants, assigning corresponding symbols. The script continuously updates the display every 0.03 seconds as long as the feature remains enabled.

Uploaded by

Carl Attaban
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Zs GK45 JC

The script enables a feature that updates a display based on the colors and shirts detected in the game environment. It utilizes raycasting to analyze objects in the workspace and categorize them into shirts or pants, assigning corresponding symbols. The script continuously updates the display every 0.03 seconds as long as the feature remains enabled.

Uploaded by

Carl Attaban
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

_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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy