I’m trying to animate the player eating rice with chopsticks. Right now it seems like the tools are only attached to the hands. In my animation I made it so the tools are a bit more interactive.
Here is the result in animation editor
Here is the result in play mode
The code
--Services
local Players = game:GetService("Players")
--The player
local Player = Players.LocalPlayer
local char = Player.Character or Player.CharacterAdded:Wait()
local humanoid = char:WaitForChild("Humanoid")
local leftHand = char:WaitForChild("LeftHand")
local animation = script.Parent.Animation
local animationTrack = humanoid:LoadAnimation(animation)
--Tool
local tool = script.Parent
local handle = game.Workspace:WaitForChild("Handle")
--Events
tool.Activated:Connect(function()
print("Tool Activated")
local motor6D = Instance.new("Motor6D")
motor6D.Parent = leftHand
motor6D.Part0 = leftHand
motor6D.Part1 = handle
animationTrack:Play()
end)
Tool doesnt get attached to player’s hand in first place since Script does that. You might have to get another rig that has only the bowl as a tool, and chopsticks already attached to the hand.
Overall, you’re totally fine!
You will be fine with just 1. I mean’t that chopsticks shouldn’t be in the tool but attached to the hand in the first place (for animating, since in-game it works fine you dont need to do anything in the script)
I’m confused right now, right now I feel like that I’m only animating the arms and that the handles are just moving with them since I attached them using motor6d
Is their a way to like animate the tools? Also do you have a procedure when animating like a checklist
I’ve had this problem myself, you need to weld the tool the the hand (If the game is in r15 just weld it to the hand part not the whole arm or else the animation may break.) and then put the tool into the rig so that the tool becomes a part of the animation, hope that helped.
It should not count, you don’t need to use motor6ds to run an animation. I suggest making a simple ‘function onClick()’ script. (if you need help with that script I will send it to you)