Help with adding Knockback to my combat script

oh thats so true! here goes try 11 B)

:DDD IT WORKS!! WOWWW that took so long loll, thanks so much for your help and sticking around for the past 2 hours.

https://i.gyazo.com/03a8a7f1212156b17e5bb22be5ca9184.mp4

Yay! I’m so very happy that we got it figured out. Nice problem solving pal.

1 Like

Hey if you’re around I could use your help again.

Remote.OnServerEvent:Connect(function(Player,Character,NextAnim)
		if NextAnim == 1 then
		 local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart")
				             local BodyVelocity = Instance.new("BodyVelocity", HumanoidRootPart)
			
            BodyVelocity.Velocity = Vector3.new(0,10,0) + Character.HumanoidRootPart.CFrame.LookVector *  150
				
					            wait(0.5)

				
			 BodyVelocity:Destroy()

so it sends them in the direction that the enemy is facing, instead of the direction I am facing.

Nevermind i figured it out, just had to specify for it to pay attention to us by saying Players.localPlayer instead of just character

Glad you figured it out! If you do ever need any help in the future, just DM me so we don’t thwart with the topic of this post :smile:.

1 Like