|
| 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
|
  |
| 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 |
|
|
|
| 20 May 2015 12:25 AM |
| Nope still crashes Studio. This bug is starting to get really annoying, haha. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 20 May 2015 12:28 AM |
| Yeah, I don't understand why it's doing it. |
|
|
| Report Abuse |
|
|
mycheeze
|
  |
| Joined: 27 Jun 2011 |
| Total Posts: 6748 |
|
|
| 20 May 2015 12:29 AM |
try using wait() before loading the animation
|
|
|
| Report Abuse |
|
|
|
| 20 May 2015 12:31 AM |
| Alright, so the wait(1) did't do anything either. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 20 May 2015 12:34 AM |
| No honestly I didn't even think of that. I will give it a shot. |
|
|
| Report Abuse |
|
|
|
| 20 May 2015 12:38 AM |
| Well that fixed the Crashing issue but now my animation won't play |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|