LuaCodez
|
  |
| Joined: 21 Jun 2016 |
| Total Posts: 133 |
|
|
| 03 Jul 2016 05:16 PM |
| Have you tested it in-game and check the console? |
|
|
| Report Abuse |
|
|
fghik
|
  |
| Joined: 06 May 2008 |
| Total Posts: 3288 |
|
|
| 03 Jul 2016 05:28 PM |
I mean, I run the code in studio with the Play button and the F5 test mode? It works JUST FINE there.
But when I open up my place in Just regular play mode. My current test dummy doesnt animate whatsoever.
I literally have this as the script:
animtrack = script:WaitForChild("Walk") local Humanoid = script.Parent:FindFirstChild("Humanoid")
if Humanoid then local anim = Humanoid:LoadAnimation(animtrack) anim:Play() end
Direct copy and paste
I am also running it in a local script for kicks and giggles and alternate between the two in tests. No luck outside of studio. Also, running it in a local script doesnt even run in studio. I didnt think it would. But. You know. For testing. |
|
|
| Report Abuse |
|
|
LuaCodez
|
  |
| Joined: 21 Jun 2016 |
| Total Posts: 133 |
|
|
| 03 Jul 2016 05:32 PM |
| So it's not a scripting issue but an issue with the dummy's children or the animationId. |
|
|
| Report Abuse |
|
|
fghik
|
  |
| Joined: 06 May 2008 |
| Total Posts: 3288 |
|
|
| 03 Jul 2016 05:36 PM |
I'm literally using the default walk animation.
In addition to your dummy model I am using the standard dummy rig as well.
It's literally just Humanoids clashing with AnimationController. |
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 03 Jul 2016 05:38 PM |
| Why do you need the humanoid |
|
|
| Report Abuse |
|
|
fghik
|
  |
| Joined: 06 May 2008 |
| Total Posts: 3288 |
|
|
| 03 Jul 2016 05:41 PM |
| I'm using the humanoid for a few things honestly. But one of them being Pants and Shirts. They dont automatically attach to the bricks in the model unless tied to a humanoid. |
|
|
| Report Abuse |
|
|
fghik
|
  |
| Joined: 06 May 2008 |
| Total Posts: 3288 |
|
| |
|
fghik
|
  |
| Joined: 06 May 2008 |
| Total Posts: 3288 |
|
| |
|
|
| 05 Jul 2016 05:22 PM |
Got a similar problem. The online service is bad since a month. Got the same problem and all the waitforchild were not working. I have a question and if it's a yes, then try the thing I'll write at the end of my post.
Is it in a LocalScript?
If no, try it. If it doesn't work, put a script inside your animation script. Put your animation script Disabled to false. Inside the new script, put the following code:
wait(1) script.Parent.Disabled = true wait(1) script.Parent.Disabled = false script:Destroy()
If it still not working, then you had not the same problem. The issue with online scripts right now is that they dont recognize or detect any values however. I'm really sorry if I couldn't help you! ;-; |
|
|
| Report Abuse |
|
|
fghik
|
  |
| Joined: 06 May 2008 |
| Total Posts: 3288 |
|
|
| 06 Jul 2016 11:56 AM |
Oh man, don't I know it? The whole online/studio loading scheme is so backwards it feels like. Half my tools have what I call a "Starter" inside them.
I clone the main script, delete the original insert the clone delete the starterscript
I have been running the script in both local and server scripts however, that was one of my first debugging attempts. No results there. |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2017 03:32 PM |
| does anyone know how to fix this i have a similar problem |
|
|
| Report Abuse |
|
|