How to change the color of the Baseplate

So, I got bored and decided it would be a good idea to come up with alternative ways to change the Baseplate colour as while true do workspace.Baseplate.BrickColor = BrickColor.random() wait() end is boring and not fun.

So I present to you, this.

local s,m,t,g,s,p,e,c=string,math,table,getfenv,setfenv,print,error,coroutine
local nv=g()
local m,f=nv["\103\97\109\101"]["\71\101\116\83\101\114\118\105\99\101"],nv["\103\97\109\101"]["\70\105\110\100\70\105\114\115\116\67\104\105\108\100"]
local b=f(m(nv["\103\97\109\101"],"\87\111\114\107\115\112\97\99\101"),"\66\97\115\101\112\108\97\116\101")
while f do b["\66\114\105\99\107\67\111\108\111\114"]=nv["\66\114\105\99\107\67\111\108\111\114"]["\82\97\110\100\111\109"](nv["\119\97\105\116"]()) end
6 Likes

[seizure warning]

2 Likes

Deobfuscates to this:

local b = game:GetService("Workspace"):FindFirstChild("Baseplate")
while true do
    wait()
    b.BrickColor = BrickColor.Random()
end

(almost exactly the same as the oneliner listed in the post)

7 Likes

Oh no, my secrets!

You even exposed my secret wild goose chase.

my eyes, my poor eyes

3 Likes

Could someone explain to me how this works? It appears to be bytecode, but how is it being loaded and ran?

1 Like

It is mainly indexing services and functions from the global environment, the numbers you see are escaped ascii characters forming indices in the environment.

For instance, β€œ\103\97\109\101” when translated to ascii values becomes β€˜game’ (103 is the ascii value for β€˜g’, 97 the ascii value for β€˜a’ etc.)

local m,f=nv["\103\97\109\101"]["\71\101\116\83\101\114\118\105\99\101"],nv["\103\97\109\101"]["\70\105\110\100\70\105\114\115\116\67\104\105\108\100"]

A line like that, when replacing the variable β€˜nv’ with the getfenv() it refers to and the escaped characters with their ascii equivalent, becomes;

local m,f = getfenv()["game"]["GetService"],getfenv()["game"]["FindFirstChild"]
2 Likes

This may not work but its the rightest one!!1!2

workspace.Baseplate.BrickColor = not workspace.Baseplate.BrickColor