I’ve been experimenting recently - usually I just stick to building or modelling but I’ve tried making animations. I’ve got the animation, but I don’t know how to apply it to people, nor do I know how I can make that execution possible via GUI.
I know that its 100% going to be something really simple and the moment I get some help with it i’ll realise how easy it actually was but at the moment, like I said, i’m new and completely lost. If you need more elaboration I can provide that, but if not then I beg you provide me with some remedies.
local Humanoid = path.to.humanoid
local Animation = path.to.animation :: Animation
local guiButton = path.to.button :: TextButton | ImageButton
local function applyAnimation()
local animationTrack = Humanoid:LoadAnimation(Animation)
animationTrack.Priority = Enum.AnimationPriority.Action4
animationTrack:Play()
end
guiButton.MouseButton1Down(applyAnimation)