Hello, I don’t know if the title is explicit but the problem is that I have a projectile with a BodyPosition and after 1 second I delete it and put another one. The other one just doesn’t work, I can see the BodyPosition in the projectile, I tried changing the values for dampening, force, etc… but to no avail. I can’t figure out if this is a bug or not.
Why exactly are you replacing a body position object instead of just changing the values in the existing one?
Also you shouldn’t use body positions for most projectiles.
Is the script handling the BodyPosition local or on the server? If it’s local then you are probably going to end up in trouble if the part goes a certain distance away from the player where the player no longer has control over the physics of that part due to client-server ownership.
Otherwise, more information will be required like what’s your intended purpose as @gooey333 mentions there might be a better way to do what you are doing.
I replaced it so that I could use Debris and a AncestryChanged Event. I tried your method it works, I justed changed things with a coroutine and a wait (I was firing 3 projectiles at the same times so with only a wait projectile were waiting each other). The projectiles are “auto-aimed” and not for PvP so I think it’s fine to use BodyPosition
Everything was on the server but I made it works now thanks to gooey333 . I still don’t know why it didn’t work at the start I find it strange but since it works now it’s fine and it’s better than what I did
Yea if the projectile is a heat-seeking type then body position will work but it may add dampening once it gets close to the target. If you use a loop and a velocity it may solve your problem better. It completely depends on what you’re trying to achieve.
I always used BodyPosition since I don’t really know how to do the rest well, not the best I guess considering the weird path it make my projectiles takes but for what I’m doing it’s fine. I may try velocity with the help of
since it have a good example