|
| 20 Apr 2015 05:03 PM |
Here's the snippet.
local animation = Instance.new("Animation") animation.AnimationId = "http://www.roblox.com/Asset?ID=240396451" local player = script.Parent.Parent.Parent function onActivated() local slashplay = player.Character.Humanoid:LoadAnimation(animation) slashplay:Play() wait (1.5) end end script.Parent.Activated:connect(onActivated)
The animation won't run but after plugging in this ID into animation editor, it would successfully run.
|
|
|
| Report Abuse |
|
|
| |
|
xman262
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 19094 |
|
|
| 20 Apr 2015 05:16 PM |
Can you help me with just printing hello world? It says there is an error on the 2nd part local Message = Instance.new("Message")
Message.text = "Hello World"
Message.Parent = game.Workspace
wait(5)
Message:remove ()
what is it?
Lord Of The Epic Face R$466/R$10,000 |
|
|
| Report Abuse |
|
|
xman262
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 19094 |
|
|
| 20 Apr 2015 05:16 PM |
QQ I can't even do the easiest script :(
Lord Of The Epic Face R$466/R$10,000 |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 21 Apr 2015 04:11 PM |
@xman
local Message = Instance.new("Message",game.Workspace) Message.Text = "Hello World" wait(5) Message:Destroy()
|
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Apr 2015 04:27 PM |
| Thanks, that totally answered my question. |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Apr 2015 03:18 PM |
| If you don't know what the problem is, or want to say I'm stupid because that is right or something. Feel free to say so. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 23 Apr 2015 02:38 PM |
| another day has passed w/o help |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
| |
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 23 Apr 2015 05:00 PM |
| is it just me, or did you not parent the animation instance? |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2015 07:16 PM |
| I didn't but I don't think it would effect it. But thanks for actually replying though! |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2015 07:23 PM |
| I dont know how to use animations, yet, sorry. |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Apr 2015 04:27 PM |
| This should be working fine. I'd play the animation in studio mode for the player itself via command bar and the animation id is good. I'd also throw in testing to make sure it activates when I want to such as print '1'. And it does show those. I'd print who the player was and it was correct. Idk what the problem is though. |
|
|
| Report Abuse |
|
|