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
 

ROBLOX Wiki Wrong?

Previous Thread :: Next Thread 
BlixBlocker is not online. BlixBlocker
Joined: 24 Dec 2013
Total Posts: 657
09 Jul 2015 08:48 PM
For putting an animation in a character, it says to do this:

local animTrack = Humanoid:LoadAnimation(animation)
animTrack:Play()

I made a local script and did this:

local player = game.Players.LocalPlayer
local character = player.Character
local Humanoid = character.Humanoid
local animation = game.Workspace.Animation

local animTrack = Humanoid:LoadAnimation(animation)
animTrack:Play()

For some reason it isn't working
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
09 Jul 2015 08:49 PM
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:wait()
local Humanoid = character:WaitForChild("Humanoid")
local animation = game.Workspace.Animation

local animTrack = Humanoid:LoadAnimation(animation)
animTrack:Play()
Report Abuse
BlixBlocker is not online. BlixBlocker
Joined: 24 Dec 2013
Total Posts: 657
09 Jul 2015 08:52 PM
it doesn't give me any errors in the output but it doesn't work. I still have my normal walking animation
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