|
| 02 Jun 2017 03:48 PM |
local animation=Instance.new("Animation") animation.AnimationId="MY ANIM ID IS HERE" local tracknimation=true local playability=true function playAnimation(AnimationSource) if playability==true then local plr=game.Players.LocalPlayer trackanimation=plr.Character.Humanoid:LoadAnimation(animation) trackanimation.KeyframeReached:connect(function(kf) print('Working') end) trackanimation:Play() end end script.Parent.MouseButton1Click:connect(playAnimation) eof= 'end'
Output says: Working
Nothings happening with my avatar. I created my own animation that runs for 10 seconds. I also tried using other animation ID's. Still nothing. Buttons in a ScreenGui attached local script to txtButton. |
|
|
| Report Abuse |
|
|
SPACEDUDZ
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 257 |
|
|
| 02 Jun 2017 03:50 PM |
Why are there so many posts about animations.
You can find all the answers on the wiki :p
|
|
|
| Report Abuse |
|
|
nullfeels
|
  |
| Joined: 31 Mar 2017 |
| Total Posts: 1215 |
|
|
| 02 Jun 2017 03:54 PM |
| IKR! xD I was wondering the same thing. |
|
|
| Report Abuse |
|
|