Corrupted Parts

I made a Serializer Module that saves and loads instances the only problem is this werid bug that happens when i try to load parts


whats also werid is when i try to play the game everything is flipped

this happens in-game aswell not just studio

3 Likes

I think what is happening is that everything is loading with a incorrect CFrame possibly on the models maybe the Z axis is inverted.

2 Likes

Looks like the CFrame is Inverted! I feel like I have seen this before while making my level editor. You are basically seeing through the parts because they are inside-out.

Take a look on how you are saving the cframe data?

2 Likes

I believe i encountered something similar to this a while back. Try making sure the saved CFrame does not have large decimals on the end and make sure there are no NaN values. I could be wrong, as when i had to fix this issue on my end, it was a few months ago. (also small edit, this seemed to also affect physics)

I didn’t even know it was possible to invert a CFrame like that?

I thought Roblox only uses CFrame for position and rotation and that scale was locked?

thanks i just fixed it by adding - to the prop.lookVector

2 Likes

The CFrame DataObject can require up to 9 Single Number Values for Rotation Aka: 3 (Vector 3’s) Which you can fetch by doing Cframe:GetComponents()

(UpVector) (RightVector) (LookVector)

if one or more of these are inverted/Incorrect then this sort of thing can happen. Even with normal roblox engine parts.

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