generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Why is this sht not working

Previous Thread :: Next Thread 
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
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
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
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
IllegallyBlind is not online. IllegallyBlind
Joined: 07 Nov 2010
Total Posts: 1691
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
VanillaPolarBear is not online. VanillaPolarBear
Joined: 22 Oct 2009
Total Posts: 1987
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
DermonDarble is not online. DermonDarble
Joined: 04 Jun 2015
Total Posts: 2576
23 Sep 2015 07:45 PM
it's not working because you're such a terrible scripter

DermonDarble is dead
Report Abuse
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
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 is not online. 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
SwagCuzYolo is not online. SwagCuzYolo
Joined: 31 Oct 2013
Total Posts: 1224
23 Sep 2015 09:07 PM
NPCs need to use an animationController to play animations. Look at the wiki.
Report Abuse
Pinkerten is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image