I didn’t really know which category to put this in, so if this category is wrong I will take down the post and move it to the correct category.
Hey guys, I am making a game that uses a standing still camera that is away from the character. I ran into an issue where when I play I can see through the character’s body parts as if I were zoomed in.
I have been fiddling with camera settings and cannot really seem to figure out how to fix this. Does anyone know why this is happening or how to fix it?
EDIT: It only seems to happen with certain characters, I changed to a character with a package and the effect stopped.
I just have a localscript in StarterGui with this code:
local Player = game.Players.LocalPlayer
local Camera = workspace.CurrentCamera
local Character = Player.Character or Player.CharacterAdded:Wait()
repeat wait()
Camera.CameraType = Enum.CameraType.Scriptable until
Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = workspace.Camera1.CFrame
local Player = game.Players.LocalPlayer
local Camera = workspace.CurrentCamera
local Character = Player.Character or Player.CharacterAdded:Wait()
Camera.CameraType = Enum.CameraType.Scriptable
game:GetService("Run Service").RenderStepped:Connect(function()
if Camera.CameraType == Enum.CameraType.Scriptable then
Camera.CFrame = workspace.Camera1.CFrame
end
end)
local Camera = workspace.CurrentCamera
local Character = Player.Character or Player.CharacterAdded:Wait()
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = workspace.Camera1.CFrame
local Player = game.Players.LocalPlayer
local Camera = workspace.CurrentCamera
local Character = Player.Character or Player.CharacterAdded:Wait()
Camera.CameraType = Enum.CameraType.Scriptable
game:GetService("Run Service").RenderStepped:Connect(function()
Camera.CameraSubject = nil
Camera.CFrame = workspace.Camera1.CFrame
end