Issue with my camera (viewmodel)

Hello,
I would like my viewmodel to be visible everytime
My arms and the pistol is going through the wall and I can’t see it anymore. I was wondering if
there was a way to fix that?

Here’s a screenshot of what I mean

2 Likes

You can use ViewportFrames to do this, however ViewportFrames do not have lighting. I don’t know any other way you can do it, though.

Most games don’t really try to solve this because there is no z-index or render priority over parts. ViewportFrames work but they have their own issues.

3 Likes

Yeah, I knew about ViewportFrames and that’s what I wanted to say, but without the lighting it feels like the game engine is broken. So I actually use Camera, and really hope there’s a way to fix this.

1 Like

You could try changing the size of the arms/gun and making it closer to the camera. It wouldn’t be gone, but it may minimize the clipping. I think even phantom forces ignores the clipping issue, because there’s no practical solution as of right now.

1 Like

Wouldn’t doing that make CFrame hyper-sensitive? I’m using CFrame lerping for animations and position, so if I do that it’s gonna be broken and even if I fix it it’s gonna be hardcore to use CFrame.

1 Like

I’m not sure how much harder it’d be for animations to work, but smaller movement may look bigger on the downscaled version. I don’t have much experience with animating aside from roblox’s built-in animation system.

Alright. Thanks anyway, I’ll try that if I can’t find anything else.

I’m pretty sure in Roblox players expect that if you equip a tool and put it up against a wall it would go through, so you shouldn’t have to worry too much about it.

1 Like