Hello developers, I would like to know if it’s possible to randomly change the properties of parts in a model to quickly and easily randomize certain properties.
I’ve tried something but ended up crashing Studio and losing all current progress and having to redo what I just did all over again.
Any help with this is massively appreciated,
Thanks, MBroNetwork.
Edit: I’m trying to change the properties with a script, not just randomly pick out the parts in the explorer.
I’m basically just changing the value of a StringValue.
local test = {
"1",
"2",
"3",
"4",
"5",
"6"
}
local function randomizeValue(getObjectProperty, getTable)
local randomizedTable = getTable[math.random(1, #getTable)]
getObjectProperty.Value = randomizedTable
end
while task.wait(.5) do
randomizeValue(script.Value, test)
print("test: " .. tostring(script.Value.Value))
end