local function p(p)local A=p.Parent if game.Players:GetPlayerFromCharacter(A)then wait(.8)Brick.Transparency=Brick.Transparency+.8 Brick.CanCollide=false wait(2)Brick.Transparency=0 Brick.CanCollide=true end end Brick.Touched:connect(p)
--Code--
local function PlayerTouched(Part)
	local Parent = Part.Parent
	if game.Players:GetPlayerFromCharacter(Parent) then
		wait(0.8)
		Brick.Transparency = Brick.Transparency + 0.8
		Brick.CanCollide = false
		wait(2)
		Brick.Transparency = 0
		Brick.CanCollide = true
	end
end

Brick.Touched:connect(PlayerTouched)
