i've been making a race track, and i want to make it so people can't go before the race actually starts, so i added walls on every starting position possible, but there is a lot of walls, and i want to be able to make all of them have cancollide set to false at the same time (which is when the race starts), is it possible to adjust all of them at the same time without having to do them individually, as in every part taking up a single line in the script?
Yes there is a way to do this!
To be organized make a folder with all the parts you want to block the race track. Put all the parts that block the race in the folder
Function to use: :GetChildren() -- Returns a table of all the children within an object
Code:
for _, part in pairs(Folder:GetChildren()) do part.CanCollide = true end
There is a video on all of the default roblox functions (very useful) : https://www.youtube.com/watch?v=w4k_WRg4da8
I hope this helps!