Still have questions? Join our Discord server and get real time help.
0

# Why does my punch script miss half of the time?

Edited 6 months ago
--server script 1
function game.ReplicatedStorage.Punching:OnServerInvoke(player)
local damage = script.Dmg:Clone()
damage.Disabled = false
damage.Parent = player.Character.LeftHand
wait(0.3)
damage:Destroy()
end

--Actual script that does damage
local LHand = script.Parent
local hurt = script.DMG
LHand.Touched:connect(function(Part)
if Part.Parent:FindFirstChild("Humanoid") then
local Human = Part.Parent:FindFirstChild("Humanoid")
Human.Health = Human.Health - hurt.Value
end
end)



Basically half of the time it works and damages the other player. Half of the time it does not. I think this is either a script issue or animation issue. The animation punch's around where your neck would be, so if it did hit it would hit your head, upper torso, or part of your arm.

0
punch better xd theking48989987 2009 — 6mo
0
If only it was that simple lmao, later I will edit with the animation and make it aim lower XX_Doggoa 24 — 6mo
1
You and/or your players suck at punching so you need to practice with aiming incapaxx 3479 — 6mo
0
BOI ^ BashCaster 2324 — 6mo
0
lmao, if you can't help then dont respond XX_Doggoa 24 — 6mo