Script knockback issue

Hi,

I am currently working on a knock back script where the object hits a player and they are knocked into the air then the force is removed off the player and they can walk around like normal.

The problem i’m having is that when the player is hit by the object they are flown into the air but the force doesn’t seem to stop and they keep going into the sky. When i remove wait(forcetime) then they move for a split second when hit by the object. I only want the force applied for 1 second but the wait doesn’t seem to be working.

Any ideas?

try using a remote event that tells the player that has been hit to be knocked back, knocking them back through server is not very useful, but using a remote event the client can do it itself.