Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How in a weapon do you find a Humanoid?

Im making a weapon and I need to figure out how you would find if the item shot has a Humanoid any explanations/Examples???

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.