of     1   

CasualtiesOccured
#139513858Monday, July 07, 2014 7:46 AM GMT

--AduriteVisor --RedPaintballMask [Adurite Paintball mask] --AduriteTophat --AduriteWingedCrown --AduriteMaskWithGoggles names={"AduriteVisor","RedPaintballMask","AduriteTophat","AduriteWingedCrown","AduriteMaskWithGoggles"} script.Parent.Touched:connect(function(hit) wearing=false for _,v in pairs(names) do if hit.Parent:findFirstChild(v) ~= nil then wearing=true elseif hit.Parent:findFirstChild(v) == nil and wearing==false then wearing=false if hit.Parent:findFirstChild("Humanoid") and wearing==false then hit.Parent["Humanoid"].Health=0 end end end end) -------------------------- Basically I made this script in 10 mins, it checks if you are wearing any of the hats in the tables.. but it only works the visor.. any help? I was expecting the door to not kill anyone if they are wearing any of the hats in the table, but what happens is if they are not wearing "AduriteVisor" they are killed.
CasualtiesOccured
#139514373Monday, July 07, 2014 7:58 AM GMT

bump
lama321
#139522749Monday, July 07, 2014 11:57 AM GMT

perhaps it is because the hats might not be called those names, that is, you could be wearing AduriteTophat but it is just named 'Hat' perhaps try checking for the specialmesh Id of each hat rather than those names
purplescheer9
#139525785Monday, July 07, 2014 1:15 PM GMT

Idk about the hat part but pretty sure it kills them since you put in hit.Parent["Humanoid"].Health = 0 ~I like trees
CasualtiesOccured
#139563062Monday, July 07, 2014 8:29 PM GMT

yeah i fixed it, thanks guys

    of     1