Hello, I have this code here:
rs.ToolRemotes.WeaponCameraRemote.OnServerEvent:Connect(function(plr, pitch) -- pitch is the arc sine of the y-axis of lookvector of the camera
local character = plr.Character
local humanoid = character:FindFirstChild("Humanoid")
if humanoid.RigType == Enum.HumanoidRigType.R15 then
local waist = character.UpperTorso:FindFirstChild("Waist")
if waist then
waist.C0 = CFrame.new(waist.C0.Position) * CFrame.Angles(-pitch, 0, 0)
end
else
local lh = character.Torso:FindFirstChild("Left Hip")
local rh = character.Torso:FindFirstChild("Right Hip")
if lh then
lh.C0 = CFrame.new(lh.C0.Position) * CFrame.Angles(-pitch, -90, -pitch)
end
if rh then
rh.C0 = CFrame.new(rh.C0.Position) * CFrame.Angles(pitch, 90, pitch)
end
end
end)
In R15, it works.
However, in R6, it’s… well…


