function t()
	body.Position = Vector3.new(-229, -34.8, 41.235)
	function t()
		body.Position = Vector3.new(-220, -34.8, 41.235)
		
		function t()
			body.Position = Vector3.new(-114, -34.8, 41.235)
		end
	end
end
script.Parent.Parent.touch.Touched:connect(t)
function d()
end
function y()
end

Okay so I'm making a script, if a brick gets touched three times in row it will(pick one): change color ,position,name,etc.

The concept of the script is that if the certain brick gets touched three times in a row, the position of the brick will move. if gets touched three more times, the position will change again.

This is what I have