So i have localscript here:
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Camera = workspace.CurrentCamera
local Character = Player.Character or Player.CharacterAdded:Wait()
local LowerTorso = Character:WaitForChild("LowerTorso")
RunService.RenderStepped:Connect(function(deltaTime)
local lookVector = Camera.CFrame.LookVector
if lookVector.Y > 0.1 then
print("Looking Up")
elseif lookVector.Y < -0.1 then
print("Looking Down")
end
end)
I am trying to apply lean LowerTorso up and down but im stuck on part where i have to use lookVector, do i have to conver lookVector to orientation for such thing? if so how? or if not how else can i achieve this? thanks for reading!