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)
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 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)