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
|
  |
| 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
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
| |
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 04 May 2015 11:21 AM |
rbxassetid://id
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 04 May 2015 11:40 AM |
| What do u want to do with it? just tell me c; |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 04 May 2015 12:05 PM |
| real url also gives that error |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
| |
|
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
|
  |
| 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 |
|
|