Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I rig an item onto a characters arm like a tool and animate it using a script?

Asked by 2 years ago

I want to know how to make a shotgun rig onto a characters right arm using a script but when i do the animation doesnt play correctly, i cannot just use a plugin to rig it because i want it to rig on, play the animation, then remove the shotgun.

heres my code

local shotty = asset.Shotgun:Clone()
shotty.Parent = char
local motor = Instance.new("Motor")
motor.Name = "Joint"
shotty.CFrame = char["Right Arm"].CFrame
motor.Parent = shotty
motor.Part0 = char["Right Arm"]
motor.Part1 = shotty
motor.CurrentAngle = ye.WorldOrientation
local animload = char.Humanoid:LoadAnimation(script.Animation)
animload:Play()

someone please answer?

0
i think its Motor6d also i dont know if this is true but i think theres some kind of C0 Positioning needed like welds Puppynniko 1059 — 2y

Answer this question