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: So does no one know how to animate a NPC?

Previous Thread :: Next Thread 
eRanged is not online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
26 Jul 2016 07:56 AM
I've had to make like 3 threads because the other reached page 3, and I don't think everyone would read all the replies of the 3 pages so why not start off clean.

Well, this is the oldest thread which explains everything I tried and the suggestions from you guys as well. I've tried everything and still not working.

Here's the old thread:
https://forum.roblox.com/Forum/ShowPost.aspx?PostID=194441996

He's some thing from the old thread you might like to know:

-ModelLink: https://www.roblox.com/AnimationHelp-item?id=464295398
-AnimationUpdateLink: http://devforum.roblox.com/t/animation-updates/26323
>Works in Solo
>Works in ServerTab for TestServer
>Doesn't work in ClientTab for TestServer
>Doesn't work in game
>Prints Ingame but doesn't show animation
-No I don't have both a AnimationController and Humanoid. I tried both ways seperately.


Report Abuse
Real_Edgy is not online. Real_Edgy
Joined: 23 Oct 2013
Total Posts: 1212
26 Jul 2016 08:00 AM
have you tried using a remoteevent to get the client to trigger the animation on its own side
Report Abuse
eRanged is not online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
26 Jul 2016 08:17 AM
I thought you had to animate NPC on the server?

When I tried using a LocalScript, it wouldn't even work in studio. This one atleast works in studio, just not clienttab for testserver and ingame.


Report Abuse
eRanged is not online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
26 Jul 2016 09:48 AM
D:


Report Abuse
Rick_EU is not online. Rick_EU
Joined: 05 Mar 2013
Total Posts: 5093
26 Jul 2016 09:55 AM
This forum is death bro


Report Abuse
ghost4766 is not online. ghost4766
Joined: 27 Nov 2013
Total Posts: 27
26 Jul 2016 10:19 AM
I can animate for you, I am really good and I even help you to run a animation when you press a keyDown.

IF you help with this...

local character = Player.Character
local torso = character.Torso
Torso.CFrame = CFrame.new(Torso.Position + Torso.CFrame.lookVector * 15)
I am trying to make my player dash 15 studs to where my mouse is directed and it should be activated when I pressed the Left Shift button. This is what I know it should almost look:

Hope you consider to help me!
/MarcusKnows/Animator and Builder
/Alt ghost4766


Report Abuse
eRanged is not online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
26 Jul 2016 10:44 AM
uhhhhhh
Report Abuse
eRanged is not online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
26 Jul 2016 12:10 PM
xd
Report Abuse
eRanged is not online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
26 Jul 2016 01:52 PM
xdddd


Report Abuse
QuantumPhoton is not online. QuantumPhoton
Joined: 19 Jan 2016
Total Posts: 309
26 Jul 2016 01:54 PM
I dont like you. Your a meany. You are so bad at scripting and building and phantom forces and I am so much better than you. I bet you cant even do what I am doing right now. Ya thata right you cant even type becase your so bad at scripting so ha get rekt little noob come at me bro give me your best shot
Report Abuse
eRanged is not online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
26 Jul 2016 02:13 PM
xdddddddddddddddd


Report Abuse
eRanged is not online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
26 Jul 2016 03:54 PM
help
Report Abuse
eRanged is not online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
26 Jul 2016 06:20 PM
hmmm


Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
26 Jul 2016 06:22 PM
Dude I can animate NPCs that are rigged robot characters. If you can't animate an NPC then here are a couple of things that may be wrong:

1.) The animation you want does not belong to you or your group
2.) You call the :Play() or :Stop() functions more than once (repeatedly)
3.) The code is incorrect (uses LocalScript only functions/variables)
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
26 Jul 2016 06:23 PM
i assume u followed this right?

http://wiki.roblox.com/index.php?title=Animations#Playing_Animation_in_Non-Player_Character
Report Abuse
eRanged is not online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
26 Jul 2016 06:27 PM
@aggres nope

@thedaily I know I actually animated a custom Mob with Motors using Character Rig Plugin and Animation Editor. But then I got this problem.

So I tried using a simple model, and it still didn't work! Can you take this and see what's wrong? https://www.roblox.com/AnimationHelp-item?id=464295398


Report Abuse
eRanged is not online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
26 Jul 2016 06:29 PM
for the model link, i changed it to 'ROBLOXs' animation just so you can test it for yourself. Because you can't see my animation in your place. I tried mine already.

You should be able to see the animation because it's roblox.


Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
26 Jul 2016 06:34 PM
I scripted my own character rigger and character ragdoll rigger.

My rigs always work and I can run exported roblox animations on them with :Play() and :Stop() just fine.

I don't know what your code is so I can't know what to fix and I don't know how your character is rigged or how you exported the animation either. Just saying, I dont have enough information to tell you what you did wrong, all I know is that something you did is.

For example, if you go to one of my AI testing places you will see a robot butler I created and it has perfectly fine working animations.
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
26 Jul 2016 06:35 PM
This place of mine also has working animations (tail, arms, head; legs are cframe) https://www.roblox.com/games/450094947/Hangout-Dinosaur-Simulator-Waste-Of-RAM
Report Abuse
eRanged is not online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
26 Jul 2016 06:43 PM
Ok I'll show you code and model.


--Humanoid

>Model
>Script
>Humanoid
>Head
>Mesh
>Face
>HumanoidRootPart
>Root Joint
>Left Arm
>Left Leg
>Right Arm
>Right Leg
>Torso
>Left Hip
>Left Shoulder
>Neck
>Right Hip
>Right Shoulder

Code:

local Humanoid = script.Parent:WaitForChild("Humanoid")
local Animation = Instance.new("Animation",script.Parent)
Animation.AnimationId = 'http://www.roblox.com/asset/?id=180426354'
local AnimPlay = Humanoid:LoadAnimation(Animation)

AnimPlay:Play()
print('Animation Played')



--AnimationController

>Model
>Script
>Head
>Mesh
>Face
>HumanoidRootPart
>Root Joint
>Left Arm
>Left Leg
>Right Arm
>Right Leg
>Torso
>Left Hip
>Left Shoulder
>Neck
>Right Hip
>Right Shoulder

Code:

local Controller = Instance.new("AnimationController",script.Parent)
local Animator = Instance.new("Animator",Controller)
local Animation = Instance.new("Animation",script.Parent)
Animation.AnimationId = 'http://www.roblox.com/asset/?id=180426354'
local AnimPlay = Controller:LoadAnimation(Animation)

AnimPlay:Play()
print('Animation Played')



Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
26 Jul 2016 06:46 PM
This should work

local humanoid = script.Parent:WaitForChild("Humanoid")
local anim = Instance.new("Animation")
anim.AnimationId = "http://www.roblox.com/asset/?id=180426354"

local Idle = nil

while not idle do
Idle = humanoid:LoadAnimation(anim)
wait()
end

wait()

Idle:Play()
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
26 Jul 2016 06:57 PM
Working?
Report Abuse
eRanged is not online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
26 Jul 2016 07:01 PM
nop


Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
26 Jul 2016 07:02 PM
local humanoid = script.Parent:WaitForChild("Humanoid")
local anim = Instance.new("Animation")
anim.AnimationId = "http://www.roblox.com/asset/?id=180426354"

local Idle = nil

while not Idle do
Idle = humanoid:LoadAnimation(anim)
wait()
end

wait()

Idle:Play()

Publish the new save:

https://i.gyazo.com/12e1c3051387c6471f6a872c088bef49.gif
Report Abuse
eRanged is not online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
26 Jul 2016 07:04 PM
I already knew about the lowercase
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