I want so if the player dies (RESPAWNS) the block goes normal again

block = script.Parent

function OnTouch(hit)

	block.CanCollide = true
	block.Transparency = 0
	
	block.Transparency = 0.2
	wait(0.25)
	block.Transparency = 0.4
	wait(0.25)
	block.Transparency = 0.6
	wait(0.25)
	block.Transparency = 0.8
	wait(0.25)
	block.Transparency = 1
	wait(.1)
	block.CanCollide = false
	
until (CODE) then

block.CanCollide = true
block.Transparency = 0

end

script.Parent.Touched:connect(OnTouch)

2 comments

0

What's with 'until' and 'then'? You can't just use random keywords and hope they will magically work how you want them.

0

After all of the questions you have posted, I noticed that we're slowly making a game for you. To be honest, you'd either directly request it, or put some words in it, hoping for us to make it work.