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: animation doesnt work

Previous Thread :: Next Thread 
roblock59 is not online. roblock59
Joined: 30 Jul 2010
Total Posts: 155
28 Mar 2015 05:24 PM
local mouse = game.Players.LocalPlayer:GetMouse()
local player = game.Players:GetPlayerFromCharacter()

local animation = Instance.new("Animation", player)
animation.AnimationId = "http://www.roblox.com/Asset?ID=144911345"
animTrack = player:LoadAnimation(animation)



mouse.KeyDown:connect(function(key)
if key == "e" then
animTrack:Play()
end
end)
Report Abuse
Kalgard is not online. Kalgard
Joined: 11 Nov 2011
Total Posts: 308
28 Mar 2015 05:26 PM
You cant run animations that you dont own/make
Report Abuse
roblock59 is not online. roblock59
Joined: 30 Jul 2010
Total Posts: 155
28 Mar 2015 05:27 PM
@ik I have it set 2 my animation
Report Abuse
roblock59 is not online. roblock59
Joined: 30 Jul 2010
Total Posts: 155
28 Mar 2015 05:28 PM
why doesnt this work?

local mouse = game.Players.LocalPlayer:GetMouse()

local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=231269627"
local player = game.Players.LocalPlayer.Character
animTrack = player.Humanoid:LoadAnimation(animation)



mouse.KeyDown:connect(function(key)
if key == "e" then
animTrack:Play()
end
end)
Report Abuse
Kalgard is not online. Kalgard
Joined: 11 Nov 2011
Total Posts: 308
28 Mar 2015 05:31 PM
I'm not good with scripts but it looks fine

Perhaps its a animation problem?
Report Abuse
roblock59 is not online. roblock59
Joined: 30 Jul 2010
Total Posts: 155
28 Mar 2015 05:39 PM
bump
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
28 Mar 2015 05:42 PM
Put this before everything;

repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character game.Players.LocalPlayer.Character:WaitForChild("Humanoid")



Offer on R$2,535 and send on 9,772 RAP
Report Abuse
roblock59 is not online. roblock59
Joined: 30 Jul 2010
Total Posts: 155
28 Mar 2015 05:45 PM
I got a error saying

Content failed because HTTP 403 (Asset is not trusted for this place)

even tho its my animation
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
28 Mar 2015 05:48 PM
You didnt even change the ID


Offer on R$2,535 and send on 9,772 RAP
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
28 Mar 2015 05:51 PM
repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
local mouse = game.Players.LocalPlayer:GetMouse()

mouse.KeyDown:connect(function(key)
if key == "e" then
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=231269627"
local player = game.Players.LocalPlayer.Character
animTrack = player.Humanoid:LoadAnimation(animation)
end
end)


Offer on R$2,535 and send on 9,772 RAP
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