Part becomes glitchy after a few seconds

I am using a heartbeat loop to make a part stay in one position, however, after a few minutes/seconds the part begins to stop staying in that position, and takes a few frames to respond. I have also tried while true do, but it has the same result.
How may I fix this? This has also happened in another game. (Project: Bowling)
To replicate this, just play this game for a few minutes:
https://www.roblox.com/games/18448234958/W-I-P-Project-Bowling
The player should begin glitching side to side if done correctly, and should begin doing other weird things to make the game unplayable.
Another way to replicate this is to use a part that continuously sets its position to vector3.new(0,0,0).

this might be because of physics applying more and more velocity to the part overtime, try setting the parts velocity to Vector3.new(0, 0, 0) after setting the position

1 Like

^ This removes ALL velocity, meaning it also removes intentionally kept velocity. I still want the part I am using to be able to turn (since the one in my game I am currently working on, not project bowling uses a swinging door for this representation of the bug).