All pastes #719256 Raw Edit

Shirt Door

public lua v1 · immutable
#719256 ·published 2007-09-29 02:57 UTC
rendered paste body
Door = script.Parent function onTouched(hit) 	print("Door Hit") 	local human = hit.Parent:FindFirstChild("Humanoid") 	if (human ~= nil ) then		if human.Parent.Torso.roblox.Texture == "http://www.roblox.com/asset/?version=1&id=#######" then --Replace ####### with shirt ID.			Door.Transparency = 0.5 			Door.CanCollide = false 			wait(1) 			Door.CanCollide = true 			Door.Transparency = 0 			print("Human touched door") 		else			human.Health = 100		end	end end connection = Door.Touched:connect(onTouched)