#tables help

1 messages · Page 1 of 1 (latest)

molten lagoon
#

how can i change the 1 into "RGB"?

#

ignore bad variable names ill fix later

#

why isnt image loading

stuck aurora
#

Color3FromRgb() or smth?

molten lagoon
#

noo

stuck aurora
molten lagoon
#

i want it to look like this

#

i want it to look like this

#

BRO

#

i want it to look like this

#

instead of this

#

@stuck aurora

#

ill send script

stuck aurora
molten lagoon
#
local code = script.Code.Value
local tableCode = game:GetService("HttpService"):JSONDecode(code)
local a = {
    ["RGB"]={0,0,0}
}
for i,v in pairs(a) do
    b = v
end

for i,v in pairs(tableCode) do
    print(b)
    table.insert(v[3],b)
end
print(tableCode)
#

ignore terrible variable names

stuck aurora
#

Am so lost on what u doing

#

In the code u showed

molten lagoon
#

its a game with a code system and i want to colour a whole build

#

the codes look like this

stuck aurora
#

Also u don't need to use [""]

pallid swan
stuck aurora
pallid swan
#

Try that

molten lagoon
#

[["Connector",[["5","1",6]],{"RGB":[137,99,97],"OrientationY":22.5}],["Connector",[["5","3",6]],{"RGB":[222,94,90],"OrientationY":22.5}],["Connector",[["5","6",6]],{"RGB":[84,186,163],"OrientationY":22.5}],["Connector",[["5","4",6]],{"RGB":[175,71,77],"OrientationY":22.5}],["Connector",[["5","2",6]],{"RGB":[184,151,133],"OrientationY":22.5}],["Connector",[],{"RGB":[127,174,153]}]]

#

thats what the codes look like

molten lagoon
pallid swan
#

What

molten lagoon
#

did u read what i said earlier 😭

pallid swan
#

Try putting the red green etc in brackets

#

Ik bro

molten lagoon
#

no but u dont understand

pallid swan
#

Wym color a whole building

molten lagoon
#

its a code system in a game

pallid swan
#

???

molten lagoon
#

omfg

#

there is a game

pallid swan
#

I’m trying to help u dude

molten lagoon
#

and in the game u can save ur builds as codes

molten lagoon
#

its a JSON

#

string

#

when u convert it into a table

#

it looks like this

#

bear with me

pallid swan
#

Idk how to help u then

#

Mb

molten lagoon
#

i found solution