I don’t know what setting I changed in my game, but when I’m in “building mode” (inserting objects) when I move the character under a roof, the camera approaches the character and avoids the roof.
How can I prevent this from happening?
I don’t know what setting I changed in my game, but when I’m in “building mode” (inserting objects) when I move the character under a roof, the camera approaches the character and avoids the roof.
How can I prevent this from happening?
I guess you can set cancollide to false to fix the problem.
There is a property under StarterPlayer called DevCameraOcclusionMode
. Set that to InvisiCam. Your camera should be able to go through any parts.
That’s exciting, as described here:
I’ve tried this in my LocalScript
:
local Players = game:GetService("Players")
local Player = game.Players.LocalPlayer
Player.DevCameraOcclusionMode = Enum.DevCameraOcclusionMode.Invisicam
But I get this error:
Insufficent permissions to set DevCameraOcclusionMode
The current identity (2) cannot setDevCameraOcclusionMode (lacking permission 5)
What’s wrong?
Seems like DevCameraOclusionMode cannot be set on runtime, you should be able to change DevCameraocclusionMode under the StarterPlayer instance as Volieb specified.
I’m so used to doing things via script that I didn’t even notice that the property was already exposed in StarterPlayer inside Studio.
Thanks!