(I am new to lua and coding in general so if there is a simple solution that everyone knows than sorry :/ ) So I'm working on a game where I want the player to have animations when they click on an object. In other words I need a typing animation to play when the player clicks on a computer. Here is the script I am using currently:
local Animation = script.Parent.Animation
script.Parent.MouseClick:connect(function(player)
player.Value.Value = player.Value.Value + .1
local AnimationTrack = player.Character:WaitForChild("Humanoid"):LoadAnimation(Animation)
AnimationTrack:Play()
end)
the problem with this is that it isn't very smooth and it looks bad when you click really fast. also here is the animation if anybody wants to see it (its not very good)

1 comment
Turns out I was having both problems XD. Thanks