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

Previous Thread :: Next Thread 
Intern33t is not online. Intern33t
Joined: 19 Nov 2010
Total Posts: 1530
04 May 2015 10:26 AM
script.Parent.Equipped:connect(function(mouse)
local anim = Instance.new("Animation")
anim.AnimationId = "144884906"
local animload = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(anim)
mouse.Button1Down:connect(function()
animload:Play()
end)
end)

if i leftclick, it lags my pc for a very short while, but no animation is beeing played?
Report Abuse
Intern33t is not online. Intern33t
Joined: 19 Nov 2010
Total Posts: 1530
04 May 2015 10:47 AM
help..
ok i did it better


local anim = Instance.new("Animation")
anim.AnimationId = "144884906"

script.Parent.Equipped:connect(function(mouse)
local animload = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(anim)
mouse.Button1Down:connect(function()
animload:Play()
end)
end)
Report Abuse
Intern33t is not online. Intern33t
Joined: 19 Nov 2010
Total Posts: 1530
04 May 2015 11:18 AM
HELP?
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
04 May 2015 11:21 AM
rbxassetid://id


I script -~ chimmihc
Report Abuse
Coolboyok11 is not online. Coolboyok11
Joined: 12 Sep 2014
Total Posts: 157
04 May 2015 11:36 AM
script.Parent.Equipped:connect(function(mouse)
local anim = Instance.new("Animation")
anim.AnimationId = "http://www.roblox.com/Asset?ID=144884906"
local animload = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(anim)
mouse.Button1Down:connect(function()
animload:Play()
end)
end)


done there we go... just what do u want to do with this thing?
Report Abuse
Intern33t is not online. Intern33t
Joined: 19 Nov 2010
Total Posts: 1530
04 May 2015 11:38 AM
THIS IS IN A LOCALSCRIPT NOW


script.Parent.Equipped:connect(function(mouse)
local animload = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
mouse.Button1Down:connect(function()
animload:Play()
end)
end)

IT STILL WONT PLAY THE ANIMATION
Report Abuse
Coolboyok11 is not online. Coolboyok11
Joined: 12 Sep 2014
Total Posts: 157
04 May 2015 11:40 AM
What do u want to do with it? just tell me c;
Report Abuse
Intern33t is not online. Intern33t
Joined: 19 Nov 2010
Total Posts: 1530
04 May 2015 11:54 AM
i want to make a tool that plays my animation.. or basically any good knfie slice animation
Report Abuse
Intern33t is not online. Intern33t
Joined: 19 Nov 2010
Total Posts: 1530
04 May 2015 11:57 AM
Local console if i use rbxassetid or a direct link:

Image failed to load: unexpected url
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
04 May 2015 12:02 PM
Right, I forgot that animations take the real url.


I script -~ chimmihc
Report Abuse
Intern33t is not online. Intern33t
Joined: 19 Nov 2010
Total Posts: 1530
04 May 2015 12:05 PM
real url also gives that error
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
04 May 2015 12:07 PM
http://www.roblox.com/item.aspx?id=IDHERE


I script -~ chimmihc
Report Abuse
Intern33t is not online. Intern33t
Joined: 19 Nov 2010
Total Posts: 1530
04 May 2015 12:48 PM
SAME ERROR
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
04 May 2015 12:51 PM
Maybe if you had the animation already there, I have no idea why people would make their things at run time.

It works fine.


I script -~ chimmihc
Report Abuse
Intern33t is not online. Intern33t
Joined: 19 Nov 2010
Total Posts: 1530
04 May 2015 12:54 PM
script.Parent.Equipped:connect(function(mouse)
local animload = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
mouse.Button1Down:connect(function()
animload:Play()
end)
end)


this is my script

as you can see in line 3 the animation is obviously already there
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