My models are rendering all over the place

place file:
bug_report_visual.rbxl (173.3 KB)

When it’s time to render my models, they are rendered like crazy - https://gyazo.com/d40f325c93677a24a4fb946da976d61e
What you will find in the file: The models are rendered client-side, the server sends the positions of the models (the red squares) to the client and he lerps it to place. This visual bug doesn’t happen 100% of the time, in my main place it happens 50% of the time really clueless as to what is causing it, I tried EVERYTHING so I’m filing this bug report. (To increase the likelihood of this happening increase the ServerScriptService > Init loop.)
When you click play the enemy picks a random spot in the world and goes to it.

1 Like

are these meshes or just simply parts?

image
Here is what the model is made of

Hi @edenDeden,

It looks like the direction vector you’re passing into CFrame.lookAlong can occasionally be zero, which ends up creating an invalid CFrame. Making sure you always pass in a valid direction vector should fix the problem you’re seeing.

Can you try this and verify with me whether that has resolved your problem?

OMG yes! Thank you so much you are a lifesaver :exclamation:

@edenDeden great! Glad it worked out!