NPC Fist Attack
local Players = game:GetService("Players")
local NPCCharacter = script.Parent
local NPCRightHand = NPCCharacter:WaitForChild("RightHand")
local NPCLeftHand = NPCCharacter:WaitForChild("LeftHand")
function HitAttack(Hit)
local Player = Players:GetPlayerFromCharacter(Hit.Parent)
if Player then
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
Humanoid:TakeDamage(5)
end
end
NPCRightHand.Touched:Connect(HitAttack)
NPCLeftHand.Touched:Connect(HitAttack)