Maybe this tutorial will help you.
You can also use
tool.Equipped to enable this effect like in gun.
Thats not what I was looking for, I sent an example of the torso moving up and down
I heard you have to do some math with the Motor6Ds, use the C0 (torso offset)
to do so.
This script should do moving torso up and down relative to player’s camera.
Script must be LocalScript and must be located in StarterPlayerScripts.
I hope that’s what you needed.
local cam = workspace.CurrentCamera local plr = game.Players.LocalPlayer local char = plr.Character or plr.CharacterAdded:Wait() local hrp = char:WaitForChild("HumanoidRootPart") local upperTorso = char:WaitForChild("UpperTorso") local waist = upperTorso:FindFirstChild("Waist", true) local y = waist.C0.Y game:GetService("RunService").RenderStepped:Connect(function() if waist then local camDirection = hrp.CFrame:ToObjectSpace(cam.CFrame).LookVector waist.C0 = waist.C0:Lerp((CFrame.new(0,y,0) * CFrame.Angles(camDirection.Y,0,0)),0.5 / 2) end end)