How to prevent camera going through parts

I’m making an old roblox simulator and the player camera is going through parts as soon as i set the CameraSubject to the player’s head. Here’s what it looks like:

If anyone could help i would really appreciate it.

3 Likes

if its just the floor, then make the floor thicker

1 Like

That didnt help :(. The same thing happened.

2 Likes

oh
(bro chars limit is so annoying its makes it so hard)

2 Likes

We need more info. Is this the default Roblox camera script? If not, what is the code?

1 Like

its the old default roblox script

1 Like

Okay. It works when you set the subject to the humanoid, right?

1 Like

yeah, when i set the subject to the humanoid it works.

1 Like

So, what is the issue with making the camera offset higher?

well, the humanoid and head are at the same level. the thing is that if you are for example in an animation when the head is the camerasubject, the camera follows the head, just like old roblox. and im making an old roblox simulator where its supposed to be accurate enough for people to actually feel like they’re playing old roblox.

You could just attach an invisible part to the head, and make that part the camera subject.
If you use a constraint to attach it, it will update the connected part’s position to the head position when animating.

the camera still moves through parts and objects.

I see. Have you tried adding “Head” to VALID_SUBJECTS in the PopperCam script?

no i haven’t. this fixed the problem though so thx!

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