User:Anaminus/Script:ShirtDoor: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Anaminus
No edit summary
 
>Anaminus
Blanked the page
 
Line 1: Line 1:
<pre>
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 = 0
end
end
end
connection = Door.Touched:connect(onTouched)
</pre>

Latest revision as of 06:17, 5 May 2012