johnville
|
  |
| Joined: 12 Oct 2008 |
| Total Posts: 388 |
|
|
| 29 Apr 2016 12:57 AM |
this is just part of the script
function Equip(mouse) if Speed > 0 then AnimTrack4:Play()
this is supposed to make the animation play when i move |
|
|
| Report Abuse |
|
|
xHxa
|
  |
| Joined: 13 Jul 2014 |
| Total Posts: 990 |
|
|
| 29 Apr 2016 01:04 AM |
Is it the Player or Non-Character? If it is the Player have you loaded the animation previously? |
|
|
| Report Abuse |
|
|
Dralian
|
  |
| Joined: 21 Mar 2013 |
| Total Posts: 7624 |
|
|
| 29 Apr 2016 05:48 AM |
| How does that help us solve your problem? |
|
|
| Report Abuse |
|
|
Jammer622
|
  |
| Joined: 19 Nov 2008 |
| Total Posts: 1739 |
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 29 Apr 2016 10:35 AM |
load the animation on the humanoid first
|
|
|
| Report Abuse |
|
|
johnville
|
  |
| Joined: 12 Oct 2008 |
| Total Posts: 388 |
|
|
| 29 Apr 2016 02:57 PM |
my bad i did not give enough info.. so in a tool.. i want to play an animation when the player moves *with it equipped* and stops playing when the player stops moving, i can figure out the unequip part
this is another part of the script
local player = game.Players.LocalPlayer repeat wait() until player.Character ~= nil local hum = player.Character:WaitForChild("Humanoid") local animation4 = Tool.RunAni local AnimTrack4 = hum:LoadAnimation(animation4)
function Equip(mouse) if hum Speed > 0 then AnimTrack4:Play()
and yes its player |
|
|
| Report Abuse |
|
|