How to fix physics / projectile delay?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I basically want to remove this delay when the npc throws a knife.

  2. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

Yes i did look on the hub. But didnt find anything usefull.

I tried setting the knifes network owner to the Player. That worked pretty good. But i ran into some problems with touched events after doing that. I also tried setting it to the server as you will see in the code. But that didnt fix anything.

local Clone = Handle:Clone()
			Clone.Anchored = false
			Clone.CFrame = CFrame.lookAt(script.Parent.HumanoidRootPart.Position, TARGET.Position)
			Clone.Velocity = Clone.CFrame.lookVector * 100 + Vector3.new(0, 30, 0)
			Clone.Parent = game.Workspace
			Clone:SetNetworkOwner(nil)

Any help woud be really appreciated. Because i have been trying to fix this for a really long time now :slightly_smiling_face:

Do you call that code snippet with a delay? Maybe inside a for/while true with sleep(1)?

2 Likes

Solution for physics based projectiles:

4 Likes