Hi, I am trying to make the players arms move vertically with the camera. I’ve made a script which does that, but it makes the arms move sideways too. I’ve seen games like Survive and Kill the Killers in Area 51 !!! do what I am trying to do. Any help would be appreciated!
This is my script
local player = game.Players.LocalPlayer
local camera = game.Workspace.CurrentCamera
local humanoid = script.Parent:WaitForChild('Humanoid')
local humanoidRootPart = script.Parent:WaitForChild('HumanoidRootPart')
local rightShoulder = script.Parent.Torso:WaitForChild('Right Shoulder')
local leftShoulder = script.Paren.Torso:WaitForChild('Left Shoulder')
local runService = game:GetService('RunService')
runService.RenderStepped:Connect(function()
local cameraCFrame = camera.CFrame
rightShoulder.C0 = (cameraCFrame * CFrame.new(1, -1, -0.8)):ToObjectSpace(humanoidRootPart.CFrame):Inverse() * CFrame.Angles(0, math.pi / 2, 0)
leftShoulder.C0 = (cameraCFrame * CFrame.new(-1, -1, -0.8)):ToObjectSpace(humanoidRootPart.CFrame):Inverse() * CFrame.Angles(0, -math.pi / 2, 0)
end)