game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(Char) local sound = game.ServerStorage.Punch:Clone() sound.Parent = Char:WaitForChild("Head") end) end)
game.ReplicatedStorage.Punch.OnServerEvent:Connect(function(player) local char = player.Character or player.CharacterAdded:wait() local rarm = char:WaitForChild("RightHand") rarm.Touched:connect(function(hit) local dmg = true local hum = hit.Parent:FindFirstChild("Humanoid") if hum then dmg = false hum:TakeDamage(5) wait(0.5) dmg = true end end)
player.Character.Head.Punch:Play()
Well you could take an easy way out and make an instance that does damage on hit at the end of the fist using
Instance.new("Part", --Whatever your fist is)
then use a debounce to make it hit on the time you need it, but like i said this is an easy way out, and i don't know how to make damaging punches, hope this helps.