Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Making Camera Able to See Through Parts?

Asked by 5 years ago

Before the recent updates on Roblox, i was able to have the client see through parts by setting the CameraSubject to their head part:

workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Head

However, after the updates, this method stopped working. Is there any other ways to do this?

0
I've had a theory on how to do such a thing, I'd promptly assume with the usage of a raycast & localized (localscript) cancollide you could, but then the player could go through the part, that's the problem (well by theory) Cvieyra2test 176 — 5y

1 answer

Log in to vote
1
Answered by
hellmatic 1523 Moderation Voter
5 years ago

You could set the client's mininum and maximum zoom distance:

local Player = game.Players.LocalPlayer
Player.CameraMinZoomDistance = 30

This will make the camera see through parts below the distance you set.

Ad

Answer this question