Apparently ~~~~~~~~~~~~~~~~ local Door = script.Parent function onTouch(Door) Brick = Brick.Parent:findFirstChild("Humanoid") Parent.Torso.Texture = "http://www.roblox.com/asset/?id=2133323" if (Player ~= nil) then Player.Health = 0 end end Door.Touched:connect(onTouch) ~~~~~~~~~~~~~~~~~ it isn't working..
local Door = script.Parent function onTouch(Brick) -- the argument is the part that touches the door, not the door itself local hum = Brick.Parent:findFirstChild("Humanoid") -- i wouldn't use the variable name brick if it's already being used if hum and Brick.Parent.Torso.roblox.Texture ~= "http://www.roblox.com/asset/?id=2133323" then Brick.Parent:BreakJoints() end end Door.Touched:connect(onTouch)