local remote1 = workspace.remote1
local remote2 = workspace.remote2
local remote3 = workspace.remote3
local theme1 = workspace.theme1
local theme2 = workspace.theme2
local theme3 = workspace.theme3
Is there a way to shorten this script?
local remote1 = workspace.remote1
local remote2 = workspace.remote2
local remote3 = workspace.remote3
local theme1 = workspace.theme1
local theme2 = workspace.theme2
local theme3 = workspace.theme3
Is there a way to shorten this script?
local remote1, remote2, remote3 = workspace.remote1, workspace.remote2, workspace.remote3
local theme1, theme2, theme3 = workspace.theme1, workspace.theme2, workspace.theme3
I would also recommend you change your variables to text instead of numbers as it my cause unexpected errors.
Never mind ignore what I just edited in, I wasn't thinking.
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
How would I access them, eg if remote2.BrickColor == theme2.BrickColor then print("Hello")
They are still the same just not on multiple lines. So yes you would access them like that.
Did this help?