. Problem
I am trying to make it so that the characters torso has the same orientation as the camera focus orientation. Problem is, every time I run this script it give me the error “Rotation cannot be assigned to”. Is there something i am missing?
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Torso = Character:FindFirstChild("UpperTorso")
local Waist = Torso:WaitForChild("Waist")
local Camera = workspace.Camera
local Run = game:GetService("RunService")
local function UpdateTorso()
Waist.C0.Rotation = Vector3.new(Camera.Focus.Rotation)
if Character.Humanoid.Health == 0 then
Run:UnbindFromRenderStep("Update Torso")
end
end
Run:BindToRenderStep("Update Torso",1,UpdateTorso())