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: Animation Script Crashing Roblox?

Previous Thread :: Next Thread 
DatMichaelGuy is not online. DatMichaelGuy
Joined: 30 Aug 2008
Total Posts: 248
20 May 2015 12:19 AM
Okay so I was working on a code to play animations. As I was about to test the code just to make sure it would play the animation before moving ahead it crashed studio why?
Here is my code.

local animController = Instance.new("AnimationController")
local Animations = script.Parent.Animations

animTrack = animController:LoadAnimation(Animations.WeaponCleaning1)
animTrack:Play()

Any suggestions on how I can approach it different to fix this error also here is a Gyazo link of how I have it set up.

http://gyazo.com/af0c3f3ece13d17a70bd813c76bd0a06
Report Abuse
mycheeze is online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
20 May 2015 12:22 AM
I've already reported this

Instance.new('AnimationController'):LoadAnimation(nil)

I suggest not using animation controllers altogether, they seem unnecessary.
Report Abuse
DatMichaelGuy is not online. DatMichaelGuy
Joined: 30 Aug 2008
Total Posts: 248
20 May 2015 12:25 AM
Nope still crashes Studio. This bug is starting to get really annoying, haha.
Report Abuse
mycheeze is online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
20 May 2015 12:26 AM
'Nope still crashes Studio. This bug is starting to get really annoying, haha.'

You're saying loading the animation to a humanoid will crash it?

That's odd.
Report Abuse
DatMichaelGuy is not online. DatMichaelGuy
Joined: 30 Aug 2008
Total Posts: 248
20 May 2015 12:28 AM
Yeah, I don't understand why it's doing it.
Report Abuse
mycheeze is online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
20 May 2015 12:29 AM
try using wait() before loading the animation

Report Abuse
DatMichaelGuy is not online. DatMichaelGuy
Joined: 30 Aug 2008
Total Posts: 248
20 May 2015 12:31 AM
Alright, so the wait(1) did't do anything either.
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
20 May 2015 12:33 AM
Ever think about parenting the animation controller to the thing you want to animate?

How do you think it knows what to animate?


I script -~ chimmihc
Report Abuse
DatMichaelGuy is not online. DatMichaelGuy
Joined: 30 Aug 2008
Total Posts: 248
20 May 2015 12:34 AM
No honestly I didn't even think of that. I will give it a shot.
Report Abuse
DatMichaelGuy is not online. DatMichaelGuy
Joined: 30 Aug 2008
Total Posts: 248
20 May 2015 12:38 AM
Well that fixed the Crashing issue but now my animation won't play
Report Abuse
DatMichaelGuy is not online. DatMichaelGuy
Joined: 30 Aug 2008
Total Posts: 248
20 May 2015 12:39 AM
This is the Error I am getting.

00:37:22.426 - Workspace.Vignette.Dummy.Animate:1: attempt to index field 'HumanoidRootPart' (a nil value)
00:37:22.431 - Stack Begin
00:37:22.433 - Script 'Workspace.Vignette.Dummy.Animate', Line 1
00:37:22.436 - Stack End
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