Plane model flickering in and out of existence

After welding my tank to the plane, the entire model is disappearing and reappearing.

I have seen nothing like this before. Is this a roblox bug, or is this an issue that I could fix?

1 Like

What’s the ProximityPrompt that keeps popping up when this happens, and what in your code causes it to happen?

1 Like

that’s the spawn prompt for another vehicle, but nothing to worry about.

i could tell you how it works though —

  • both models are parented under a folder, and has a lot of parts in them
  • plane uses constraint movers while tank uses body movers
  • tank’s network owner was set to me before i hopped off and got on the plane, which network owner was set to me
  • when the tank is being attached to the plane, the engine (or main part of it) is being welded and pivoted to a part on the plane

tank’s constraint movers are set by the client, but i believe that the plane’s movers are handled by the server for some reason.

1 Like

Looks like it happens when the movement velocity gets close to zero so its a NaN error related to the movement vector. Check all your code for any vector3.Unit.

2 Likes

Is it possible that this could be fixed by switching over movement velocity to the client? Or do I really have to go through my entire code for vector3.Unit NaN errors?

Alright so this might be a temporary solution but I think I had fixed it by moving constraint forces from the server to the player client, while setting the network ownership of the main part to the player. If this still persists, then it must be @dthecoolest 's solution to check for vector values being divided by zero

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.