Im making a weapon and I need to figure out how you would find if the item shot has a Humanoid any explanations/Examples???
✓ ANSWER ACCEPTED
How in a weapon do you find a Humanoid?
1 answer
✓ Accepted answer
Put this script in the tool not the handle
Damage = 50
script.Parent.Handle.Touched:connect(function(t)
if t.Parent and t.Parent:FindFirstChild("Humanoid") then
t.Parent:FindFirstChild("Humanoid").Health = t.Parent:FindFirstChild("Humanoid").Health - Damage
end
end)
There are no animations, though.
This discussion is preserved as it was. New answers, comments, and votes are closed.
