Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Why does my punch script miss half of the time?

Asked by 12 days ago
Edited 12 days 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 1410 — 12d
0
If only it was that simple lmao, later I will edit with the animation and make it aim lower XX_Doggoa 15 — 12d
1
You and/or your players suck at punching so you need to practice with aiming incapaxx 2428 — 12d
0
BOI ^ MCAndRobloxUnited 1204 — 12d
0
lmao, if you can't help then dont respond XX_Doggoa 15 — 11d

Answer this question