I know, I know there are a lot out there but I feel like there isn’t anything for my goal. Unless I missed something.
I used the local animate script that roblox creates and placed it in the starter character scripts. I replaced toolNone’s animation id with my own equip id.
The only problem is after the animation is finished the end position the animation ends up in doesn’t stay and the arm then hangs down.
I want it so that the end position that the tool and arms get in from the toolequip animation to stay in that position instead of returning back to a basic standing character.
1 Like
The way to go about this would be to change the players idle animation. Like this:
chr.Animate.idle.Animation1.AnimationId = "Your animation id"
(Another thing, make sure the animation is looping.)
1 Like
Could you explain what Animate, idle, and Animation1 are? Are they variables or some other thing?
1 Like
They’re the properties/the object.
1 Like
Maybe do this:
If you did it in a server script:
local tool = script.Parent
local anim = script.Animation
game.Players.PlayerAdded:Connect(function(player)
tool.Equipped:Connect(function()
local load = player.Character.Humanoid:LoadAnimation(anim)
load:Play()
end)
end)
If you did it in a local script:
local tool = script.Parent
local anim = script.Animation
local player = game.Players.LocalPlayer
tool.Equipped:Connect(function()
local load = player.Character.Humanoid:LoadAnimation(anim)
load:Play()
end)
1 Like
I thought we need to use humanoid or animator to load the animations??
1 Like
Oh sorry, just add player.Character.Humanoid my bad.
1 Like
Animate is a localScript within the character that controls the base animations such as idle, walking, etc, idle is a boolvalue used as a parent for two animations, Animation1 and Animation2. The animate script loads these animations when you are idle, and then plays them.
2 Likes