You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
better camera to block camera clip
- What is the issue? Include screenshots / videos if possible!
the issue is when player looks up the gun model is clipping camera
- 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)