I have a script that moves the player´s arm with their camera along the Y axis. It only works when I set the player animation IDs to 0. Otherwise nothing happens.

local cam = workspace.CurrentCamera
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local t = char:WaitForChild(¨Torso¨)

local arm = char:FindFirstChild(¨Right Shoulder¨, true)

local y = arm.C0

if arm then

arm.DesiredAngle = cam.CFrame.LookVector + 5
end
end)

8 comments

0

not sure this is the full code, right?

0

yes it is

0

forgot to add the end to it.. thats why it looked weird

0

could you show the full code? (animation)

0

cam.CFrame.LookVector + 5 Roblox doesn't support adding a Vector3 by a scalar, only multiplication and division

0

I just copied the default animation script in my character while testing the game and changed all the animation Ids to 0

0

I don't believe that this is the full code, please support what the camDirection variable is for please.

0

that was the full code.. also the camDirection was some leftover line that I forgot to remove