Left Arm not Moving with the camera

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    Fix this issue stated in the title.

  2. What is the issue? Include screenshots / videos if possible!
    The issue is stated in the title

Video:

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I found a related(?) post but no one replied to bro so I’m making this post.

code:

task.wait()

local player = game.Players.LocalPlayer
local character = player.Character
if not character or not character.Parent then
	character = player.CharacterAdded:Wait()
end
local humanoid = character:WaitForChild("Humanoid")
local torso = character:WaitForChild("Torso")
local rightShoulder = torso:WaitForChild("Right Shoulder")
local leftShoulder = torso:WaitForChild("Left Shoulder")
local camera = game.Workspace.CurrentCamera

updateSpeed = 0.25

game:GetService("RunService").RenderStepped:Connect(function()
	if character:FindFirstChildWhichIsA("Tool") then
		local toolName = character:FindFirstChildWhichIsA("Tool").Name
		if not string.match(toolName, "^LSAT MG%s?.*") then
			local camCF = camera.CFrame
			local distance = (character.Head.Position - camCF.Position).Magnitude
			if distance <= 2 and humanoid.Health > 0 then
				local rightTarget = (camCF * CFrame.new(1, -1, 0)):toObjectSpace(torso.CFrame):inverse() * CFrame.Angles(0, math.pi / 2, 0)
				rightShoulder.C0 = rightShoulder.C0:Lerp(rightTarget, updateSpeed)

				local leftTarget = (camCF * CFrame.new(-1, -1, 0)):toObjectSpace(torso.CFrame):inverse() * CFrame.Angles(0, -math.pi / 2, 0)
				leftShoulder.C0 = leftShoulder.C0:Lerp(leftTarget, updateSpeed)
			else
				rightShoulder.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(0, math.pi / 2, 0)
				leftShoulder.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(0, -math.pi / 2, 0)
			end
		end
	end
end)


(Sorry if I did smth wrong with making this post since its my first time making a devforum post)

2 Likes

fixed the problem, all good now.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.