When a player steps on the brick it disappears then after the selected time passes it becomes visible again.
Try this script
function onTouched(hit) script.Parent.Transparency=1 -- Make sure the script is in the part you want to make disappear script.Parent.CanCollide = false wait(5) -- For this example, I will use 5 seconds change 5 to the number of seconds you want to wait script.Parent.Transparency=0 script.Parent.CanCollide = true end script.Parent.Touched:connect(onTouched)
Thank you, my blocks are disappearing perfectly fine, but I have a problem specific to my game. The blocks are taking like 5+ seconds to respawn. How do I change that?
function onTouched(hit) script.Parent.Transparency=1 -- Make sure the script is in the part you want to make disappear script.Parent.CanCollide = false wait(5) -- For this example, I will use 5 seconds change 5 to the number of seconds you want to wait script.Parent.Transparency=0 script.Parent.CanCollide = true end script.Parent.Touched:connect(onClick)