Camera Clipping

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

better camera to block camera clip

  1. What is the issue? Include screenshots / videos if possible!

the issue is when player looks up the gun model is clipping camera

  1. What solutions have you tried so far? Did you look for solutions on the Creator Hub?
    i couldnt find what ive looking for
local RunService = game:GetService("RunService")
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local camera = workspace.CurrentCamera

local torso = char:WaitForChild("Torso")
local neck = torso:WaitForChild("Neck")
local rightShoulder = torso:WaitForChild("Right Shoulder")
local leftShoulder = torso:WaitForChild("Left Shoulder")

local rShoulderC0 = rightShoulder.C0
local lShoulderC0 = leftShoulder.C0

RunService.RenderStepped:Connect(function()
	local camY = -camera.CFrame.LookVector.Y -- Yukarı baktıkça pozitifleşir
	local pitchAngle = math.clamp(camY, -0.5, 0.5) * math.rad(105) -- Sınırlı açı

	local armPitch = pitchAngle * 0.5

	rightShoulder.C0 = rShoulderC0 * CFrame.Angles(0, 0, -armPitch)
	leftShoulder.C0  = lShoulderC0  * CFrame.Angles(0, 0, armPitch)
end)

I think you should build a Viewmodel system. Most first-person shooter games use this.
It’s because a client’s camera position and the head position on server(and the other clients) is not perfectly equal, so a problem could occur just like you’re having now. But when we make a thing called ViewModel, which is a replication of the arms and gun model, and update its location to in front of the player’s camera every frame, it doesn’t make such problems and it’s only made by the client, thus it isn’t visible to other players. There are some tutorials for Viewmodels. A bit difficult but try out this!