My viewmodel disappears after a while

Just so that my viewmodel doesn’t suddenly disappear. It has the correct collision group, no Massless, it was originally located in the camera and simply in the workspace. All models are welded at once, like a humanoid rig.
And everything worked until today. I didn’t release a game update. TJOC:ROBLOX



A private message is associated with this bug report

2 Likes

Could you please provide a repro file and steps so we can reproduce this internally. Thank you

Hello. I solved this problem by setting anchored = true in humanoidrootpart viewmodel.
But in any case, everything was working fine before that, so I don’t know

1 Like

This issue is happening to me as well, also started happening at the exact same time as yours. It appears that the viewmodel’s position slowly becomes lower and lower (although not appearing as if anything is changing visually) until it hits the FallenPartsDestroyHeight, at which point the viewmodel is destroyed, causing the error. Not sure why this started happening randomly, I assume it must’ve been some sort of engine change?

Here’s a repro file. The viewmodel is located under Camera and only has an invisible part. Clicking on the model shows that the position is constantly getting lower and lower, which wasn’t the behaviour until recently
viewmodel bug.rbxl (62.6 KB)

Changing the FallenPartsDestroyHeight to something like -10 instead of -500 causes the viewmodel to be destroyed faster

If your viewmodel is attached to the camera via renderStepped, simply set anchored, RootPart / HumanoidRootPart to true.

1 Like

Thanks, I realise this but this wasn’t happening before so I assume it’s unintentional behaviour

Bumping to note that the original issue is that the parts in your viewmodel need to be anchored for this to work. Otherwise, gravity acts on them each frame, hence the gradual sinking. Anchoring the part prevents it from sinking, and has the added benefit of being more efficient (since physics won’t be acting on the anchored part).

Thanks!