I'm trying to make a mini game for my game.You know the mini game 4 corners when one random colored part will disappear and kill the players on them by making them fall,yeah that's what I'm tying to do,I searched in YouTube but the script I found there is not working anymore.Can you help me please?
Alright so basically start of by localizing the 4 parts into a function
local parts = { game.Workspace:WaitForChild("Part1") game.Workspace:WaitForChild("Part2") game.Workspace:WaitForChild("Part3") game.Workspace:WaitForChild("Part4") } for i, v in pairs(parts) do v.CanCollide = false end parts[math.random(1, #parts)].CanCollide = true
then use for blabla, blabla in pairs to have the parts randomize
accept it gives you a better understanding