i made a tool, and right now i am testing cframe animations, so i made a simple one, that just changes the y axis of the right arm.
local tool = script.Parent local player = game:GetService("Players").LocalPlayer local mouse = player:GetMouse() tool.Equipped:connect(function(mouse) print("Tool equipped!") player.Character["Right Arm"].CFrame = player.Character["Right Arm"].CFrame - CFrame.new(0,1,0)
for some reason i get the error: 23:25:37.856 - Players.wookey12.Backpack.m4a2.LocalScript:6: bad argument #2 to '?' (Vector3 expected, got CFrame)
Here's the thing you can't subtract a CFrame from a CFrame, you can subtract a Vector3 from a CFrame but i'm guessing you want to move it on the Y axis relative to the part so what you can do is multiply the CFrame by another CFrame with what you want to move.
local tool = script.Parent local player = game:GetService("Players").LocalPlayer local mouse = player:GetMouse() tool.Equipped:connect(function(mouse) print("Tool equipped!") player.Character["Right Arm"].CFrame = player.Character["Right Arm"].CFrame * CFrame.new(0,1,0) --notice how I'm multiplying the CFrame