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.

2 Likes

are these meshes or just simply parts?

1 Like

image
Here is what the model is made of

1 Like

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?

1 Like

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

1 Like

@edenDeden great! Glad it worked out!

1 Like

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