#HOW TO ADD A SECOND ANIMATION WITH DUAL WIELDING(FE GUN KIT)???

9 messages · Page 1 of 1 (latest)

barren valley
wintry drum
barren valley
#

hierarchy

#

What i did

#

AM i dumb or what?

#

An animatable joint script by xSIXx. But i edited so it'll create joint to left arm. In hierarchy called GripToMotor6D2

#

i couldn't find any tutorials on yt, neither in devforum////

#
-- xSIXx, Create an animatable joint when tool is equipped.








local motorName = "Handle" -- Change this to the target Motor6D name you want in the Right Arm/RightHand.









-- DO NOT CHANGE ANYTHING BELOW. I'm not going to help you solve issues with this script if you have changed any of the code below. --
------------------------------------------------------------------------
-- variables
    local player
    local character
    local humanoid
        local isR15
    local rightHand
------------------------------------------------------------------------
-- stuff
do
    script.Parent.Equipped:connect(function()
        if player == nil then
            player = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
        end
        if character == nil or character.Parent == nil then
            character = script.Parent.Parent
            humanoid = character.Humanoid
                isR15 = humanoid.RigType == Enum.HumanoidRigType.R15
            rightHand = isR15 and character:WaitForChild("RightHand") or character:WaitForChild("Right Arm")
        end
        local getWeld = rightHand:WaitForChild("RightGrip")        
        local motor = Instance.new("Motor6D")
        motor.Name = motorName
        motor.Part0 = getWeld.Part0
        motor.Part1 = getWeld.Part1
        --motor.C0 = getWeld.C0
        --motor.C1 = getWeld.C1
        
        getWeld:Destroy()
        motor.Parent = rightHand
    end)
end
#

(in case if you need original script)