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
 

Animating Non-Player Figure WITH Humanoid????

Previous Thread :: Next Thread 
LuaCodez is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
03 Jul 2016 05:38 PM
Why do you need the humanoid
Report Abuse
fghik is not online. 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 is not online. fghik
Joined: 06 May 2008
Total Posts: 3288
03 Jul 2016 07:15 PM
bump
Report Abuse
fghik is not online. fghik
Joined: 06 May 2008
Total Posts: 3288
03 Jul 2016 10:08 PM
bump
Report Abuse
PleasantKillerman is not online. PleasantKillerman
Joined: 01 Nov 2011
Total Posts: 668
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 is not online. 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
fletchered is not online. fletchered
Joined: 22 Sep 2009
Total Posts: 1075
08 Jan 2017 03:32 PM
does anyone know how to fix this i have a similar problem
Report Abuse
Previous Thread :: Next Thread 
Page 2 of 2Go to page: 1, [2] Prev
 
 
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