In my game, there is a script but it gives me a W008 error
if prt.Name:find("Leg") then prt.Transparency = 1 end
elseif prt:findFirstChild("NameTag") then prt.Head.Transparency = .5 prt.Head.Reflectance = 0 prt.Head.BrickColor = BrickColor.new("Institutional white")
end end
prt:findFirstChild("NameTag") is the part where it gives the error. I'm hoping that someone could help me.

2 comments
indent.
Remove the end on line 1 and only use one end on line 3. elseif can't be used outside an if statement