Okay so, if there is a model named whatever I put as "wasd", then it prints, "WE FOUNDZ IT!". If it can't find it, then it kills the player which is p[i].
But, sadly, I cannot get it to do that.
What I tried:
wasd = "THEMODELSNAME"
z = p[i].Character:children()
for x = 1,#z do
if z[x]:IsA("Model") and z[x].Name == wasd then
print("WE FOUNDZ IT!")
else
p[i].Character.Humanoid.Health = p[i].Character.Humanoid.Health -(damage);
end
end |