--knockback
if not hit.Parent.Torso:FindFirstChild("spinjitzuVelocity") then
local velocity = Instance.new("BodyVelocity")
velocity.Name = "spinjitzuVelocity"
velocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
velocity.Velocity = (-hit.Parent.HumanoidRootPart.CFrame.LookVector * 100) + Vector3.new(0, 50, 0)
velocity.Parent = hit.Parent.HumanoidRootPart
wait(.1)
velocity:Destroy()
end
This is my current knockback script.
It gives the desired effect, but it seems… delayed?
At first I thought it only worked when I moved away from the player (it’s a spinjitzu script, so you’re constantly hitting them in the spinning tornado) but it turns out that it’s just delayed (the same could be said about the knockback on my kick script, with similar scripting to this).
Why does it take so long for the body velocity to take effect?
NOTE: The delay is probably around .75 - 1 second long, which doesn’t seem like a lot, but when you’re getting dealt about 25 damage a second when you’re in the tornado, it’s pretty bad.