-
What do you want to achieve? Keep it simple and clear!
When the player equips a weapon, I want animations to play (such as a custom idle/walking/jumping animation) -
What is the issue? Include screenshots / videos if possible!
Although I do have a way to do it, it has a variety of issues like delay and being client sided as in they look weird in the server, and it’d be hard to update if I changed a lot of stuff at once - especially since this will be applied to multiple tools. I don’t know how to make custom animations very well since I’m new to this in particular. This is the script in the tool I have (local script):
-- Variables --
local plr = game:GetService("Players").LocalPlayer
local tool = script.Parent
local animate = plr.Character.Animate
local animations = tool.Animations
-- Functions --
-- Change to new animations --
tool.Equipped:Connect(function()
animate.idle.Animation1.AnimationId = animations.Idle.AnimationId
animate.idle.Animation2.AnimationId = animations.Idle.AnimationId
animate.walk.WalkAnim.AnimationId = animations.Walk.AnimationId
end)
-- Revert to default animations --
tool.Unequipped:Connect(function()
animate.idle.Animation1.AnimationId = "rbxassetid://180435571"
animate.idle.Animation2.AnimationId = "rbxassetid://180435792"
animate.walk.WalkAnim.AnimationId = "rbxassetid://180426354"
end)
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have asked here about better ways to do this and while I got 2 responses nobody answered follow-up questions, so I’m still confused as to how I would do that for anything other than an idle animation.