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: How do i play an animation on my character

Previous Thread :: Next Thread 
elatedkakashi123 is not online. elatedkakashi123
Joined: 19 Feb 2011
Total Posts: 624
13 Dec 2015 05:36 PM
^^^^^ title
Report Abuse
StayToasted is not online. StayToasted
Joined: 22 Dec 2012
Total Posts: 202
13 Dec 2015 05:46 PM
ok, this is fairly simple
but ill just provide an example script to look on

local player = game.Players.LocalPlayer
local Character = game.Workspace:WaitForChild(player.Name)
local Humanoid = Character:WaitForChild('Humanoid')

local Animation = (ur animation location)
local AnimationRun = Humanoid:LoadAnimation(Animation)

AnimationRun:Play()
Report Abuse
elatedkakashi123 is not online. elatedkakashi123
Joined: 19 Feb 2011
Total Posts: 624
13 Dec 2015 06:25 PM
It dosen't work. it says "Unable to cast value to Object"
Report Abuse
epicface123321177 is not online. epicface123321177
Joined: 23 Jul 2012
Total Posts: 514
13 Dec 2015 06:33 PM
As long as you got a animation ID/Assets all set, here i what ya gotta do.

Use the following script as a little guide.

-------------------------------------------------------------------

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
player.Character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=314664123" -- Insert the ID here--
player.Character.Animate.jump.JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=315056706" -- Insert the ID here--
player.Character.Animate.fall.FallAnim.AnimationId = "http://www.roblox.com/asset/?id=125750702" -- Insert the ID here--
end)
end)

-----------------------------

Just paste the script into studio ''Workspace'' Then edit the ''ID= (insert your animation ID here)

I'm bad with explaining so forgive me if what i said made no sense xD.
Report Abuse
elatedkakashi123 is not online. elatedkakashi123
Joined: 19 Feb 2011
Total Posts: 624
13 Dec 2015 06:37 PM
no i dont want it in studio. i just wanna know how to do an animation script without pasting in models or using studio. i just want it to animate in the game.
but thanks though.
Report Abuse
epicface123321177 is not online. epicface123321177
Joined: 23 Jul 2012
Total Posts: 514
13 Dec 2015 06:44 PM
I'm a bit confused but if you are trying to MAKE an animation then use teh plugin
Report Abuse
epicface123321177 is not online. epicface123321177
Joined: 23 Jul 2012
Total Posts: 514
13 Dec 2015 06:45 PM
Nvm, you need studio for that obviously.
Report Abuse
hkep is not online. hkep
Joined: 19 Jul 2014
Total Posts: 550
13 Dec 2015 06:50 PM
local Player = game.Players.LocalPlayer;
local AnimId = (your id);

local URL = ("http://www.roblox.com/asset/?id=");
local Anim = (URL..tostring(AnimId));
Player.CharacterAdded:connect(function(Char)
local Hum = Char:WaitForChild("Humanoid");
local Track = Hum:LoadAnimation(Anim)
Track:Play();
return nil;
end);
Report Abuse
elatedkakashi123 is not online. elatedkakashi123
Joined: 19 Feb 2011
Total Posts: 624
13 Dec 2015 08:08 PM
dont work qq
Report Abuse
hkep is not online. hkep
Joined: 19 Jul 2014
Total Posts: 550
13 Dec 2015 10:02 PM
local AnimId = (your integer value ID)
AnimId is not an Object, it is the id of your animation
The animation HAS to be exported to roblox, then you HAVE to get the animation id from it.
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
13 Dec 2015 10:07 PM
What do you mean you don't want it in Studio?
Report Abuse
cgjnm is not online. cgjnm
Joined: 22 Dec 2011
Total Posts: 2347
13 Dec 2015 10:08 PM
are you talking about typing

/e dance
/e dance2
/e dance3
/e point
/e wave
/e laugh
/e cheer
Report Abuse
elatedkakashi123 is not online. elatedkakashi123
Joined: 19 Feb 2011
Total Posts: 624
14 Dec 2015 04:12 PM
no like i dont want to paste scripts in parts like in studio. i just want a script that plays the animation soon as i execute it
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