How would I go about creating a first-person UpperTorso rotating script?

I want to create a script that rotates the torso up and down (similar to the camera in Pressure) and I want to know if anybody knows any helpful resources. Oh, it may be helpful to mention my game also uses default R15 rigs.

(Pressure upper torso rotating)
Screenshot 2024-12-29 140511

I’ve searched for torso rotating scripts but all of them I’ve found didn’t work properly in first person.

Any help possible would be appreciated, and this is my first forum post so I don’t even know if I’m doing this right.

local rx, ry, rz = Camera.CFrame:ToOrientation()
local waist = Character.UpperTorso:FindFirstChild(“Waist”)

runService.RenderStepped:Connect(function(dt)
waist.C0 = CFrame.new(waist.C1.Position)* CFrame.Angles(rx,0,0)

Might go something like this. IDK if this will work for you but it works for my custom character. If it doesn’t work let me know.

I put the code into the startercharacterscripts and it kind of works but it moves the torso to the joint as well.


if I find a fix I will post it on here.

This here works

local RS = game:GetService("RunService")
local player = game.Players.LocalPlayer
local character = player.Character
local camera = workspace.CurrentCamera
local waist = character.UpperTorso:FindFirstChild("Waist")

RS.RenderStepped:Connect(function(dt)
	local rx, ry, rz = camera.CFrame:ToOrientation()
	waist.C0 = CFrame.new(waist.C1.Position) * CFrame.new(0,1,0) * CFrame.Angles(rx/1.5,0,0)
end)

Try Changing waist.C1.position to waist.C0.position

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.