function module.Knockback(plr_who_swung, hit, part)
if hit.Parent:FindFirstChild("Humanoid") then
local char = hit.Parent
local HRP = char:FindFirstChild("HumanoidRootPart")
if HRP then
local lv = plr_who_swung.Character.HumanoidRootPart.CFrame.LookVector
local LV = char:FindFirstChild("HumanoidRootPart").CFrame.LookVector * lv
local Speed = 70000
HRP:SetNetworkOwner(nil)
local vF = Instance.new("VectorForce")
vF.RelativeTo ="Attachment0"
vF.Attachment0 = HRP:FindFirstChildWhichIsA("Attachment")
vF.ApplyAtCenterOfMass = true
vF.Force = LV*Speed
vF.Parent = HRP
wait(.15)
vF:Destroy()
HRP:SetNetworkOwner(plr_who_swung)
end
end
end
Okay back from class and typing on a phone.
I’m assuming the script is in the bat or hitbox:
Here’s a simpler script
local function FuncName()
local hum = part.Parent:FindFirstChild(“Humanoid”)
if hum then
local char = path_victim_char_here
local plrchar = path_hitter_char_here
if char then
local velo = Instance.new(“BodyVelocity”)
velo.Maxforce = Vector3.new(x,y,z)
velo.P = 2000
velo.Parent = char.HumanoidRootPart
velo.Velocity = plrchar.HumanoidRootPart.CFrame.LookVector*multi_here
velo.Velocity += Vector3.new(0,5,0)
task.wait(0.2)
velo.Velocity = Vector3.new(0,0,0)
velo:Destroy()
end
end
end
Might’ve made a typo or two but you can try this very simple script to see if it made any difference. Try setting multi to like 5000 to see if the dummy moved at all.