I'm trying to animate a sword and it keeps playing all the animations EXCEPT the right hand, which is all I want to animate, I've only tried animations by adding keybinds to a button then adding the script:
function onKeyPress(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.E then
local animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Animation) -- I normally put my animation under the script
end
end
game:GetService("UserInputService").InputBegan:connect(onKeyPress)
I tried putting some part of the code into the sword but it didn't work. Can someone help?
