Firstly, I give credit to a user who gave me the script, LetThereBeCode
Ok so there are 2 parts, both with cancollide false and the script within these parts disabled. I want the script to randomly choose one to turn both cancollide to true and the script within that part to disabled = false. I apologise for my poor explaining.
local children = script.Parent:GetChildren()
while wait(3.5) do -- put 'time' to how many seconds it takes to choose the next part
local choosen = children[math.random(1,#children)]
local solidity = choosen.CanCollide = false
local prevDisable = choosen.Script.Disabled = true
choosen.Script.Disabled = false
choosen.CanCollide = true
wait(3.5) -- put 'time' to how many seconds it takes for part to return to the previous color
choosen.Transparency = prevDisable
choosen.CanCollide = solidity
end

1 comment
Read the output. You didn't even post the syntax errors this has.