I am trying to make the player get sent back after a parry occurs. I am having trouble making the player get sent BACK from their perspective. How would I make sure this happens?
Here is the code:
function Spark(hit)
---Makes it so clashing doesn't happen 24/7.
local KB = Instance.new("BodyThrust", script.Parent.Parent.Parent.Torso)
local jan = math.random(1,2)--1/2 chance to clash
if jan == 2 then
if hit.Name == 'Handle' and hit.Sword then
print('Parry!')
KB.Force = KB.Parent.CFrame.lookVector* Vector3.new(-4500,-1,-4500)
local sound = script.Parent.Sound
script.Parent.ParticleEmitter.Enabled = true
sound:Play()
wait(.5)
KB:remove()
script.Parent.ParticleEmitter.Enabled = false
end
end
end
script.Parent.Touched:connect(Spark)
The code is located inside the handle the weapon.

1 comment
im pretty sure lookvector is used in the head, not the torso