|
| 23 Sep 2015 07:18 PM |
title
while true do animation = script.Parent.Parent.Parent.Humanoid:LoadAnimation(script.Parent) if script.Parent.Parent.Parent.Humanoid:GetState() == Enum.HumanoidStateType.Running then animation:Play() end if script.Parent.Parent.Parent.Humanoid:GetState() ~= Enum.HumanoidStateType.Running then print(script.Parent.Parent.Parent.Humanoid:GetState()) animation:Stop() end
wait(5) end the animation will play but it wont stop when when the Enum is not Enum.HumanoidStateType.Running and i know that it is going through that if statement because is is printing out the State the humanoid is in and it says Enum.HumanoidStateType.RunningNoPhysics , there are also no errors in the output the animation wont stop for some reason any idea why?
Do you like Clash of Clans? Come play this developing masterpiece by Domini Studios! http://www.roblox.com/games/282763164/Clash-of-Bloxians-Beta |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2015 07:24 PM |
anyone?
Do you like Clash of Clans? Come play this developing masterpiece by Domini Studios! http://www.roblox.com/games/282763164/Clash-of-Bloxians-Beta |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2015 07:39 PM |
A) Don't use naughty language on this forum B) People need to stop posting code and ask real questions |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2015 07:41 PM |
Stop trying to change the default animations through a loop.
http://wiki.roblox.com/index.php?title=Changing_default_character_animations |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2015 07:45 PM |
it's not working because you're such a terrible scripter
DermonDarble is dead |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2015 08:39 PM |
| This is an npc not a player character so I'm not changing any default animations |
|
|
| Report Abuse |
|
|
32bitPC
|
  |
| Joined: 04 Jul 2013 |
| Total Posts: 61 |
|
|
| 23 Sep 2015 09:05 PM |
I'm not too familiar with animations, but I know that doesn't work. Try the velocity instead. |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2015 09:07 PM |
| NPCs need to use an animationController to play animations. Look at the wiki. |
|
|
| Report Abuse |
|
|
Pinkerten
|
  |
| Joined: 03 Aug 2014 |
| Total Posts: 840 |
|
|
| 23 Sep 2015 09:12 PM |
| You turn it off and on at the same time |
|
|
| Report Abuse |
|
|