twinqle
|
  |
| Joined: 23 Nov 2016 |
| Total Posts: 1613 |
|
|
| 08 Sep 2017 12:44 PM |
I've created my own animation for eating a muffin, and now I have a script to play it when the tool is equipped and there is a mouse click. When I go into test mode, it works. When I go into the real game, whether it's F.E. or not, the animation does not play. I check the console, and the error says 'Animation Failed to Load'. Does anyone know how to fix this?
Here's the script: local Tool = script.Parent local Anim = nil local Ready = true
Tool.Activated:Connect(function() if Tool.Parent.Humanoid.Health > 0 and Ready == true then Ready = false Anim = Tool.Parent.Humanoid:LoadAnimation(script:WaitForChild("Anim")) Anim:Play() wait(0) Ready = true end end)
Tool.Unequipped:Connect(function() if Anim then Anim:Stop() end Ready = true end)
you've been twinqled |
|
|
| Report Abuse |
|
|
twinqle
|
  |
| Joined: 23 Nov 2016 |
| Total Posts: 1613 |
|
| |
|
twinqle
|
  |
| Joined: 23 Nov 2016 |
| Total Posts: 1613 |
|
| |
|
Briicks
|
  |
| Joined: 03 Apr 2015 |
| Total Posts: 1796 |
|
| |
|
twinqle
|
  |
| Joined: 23 Nov 2016 |
| Total Posts: 1613 |
|
| |
|
twinqle
|
  |
| Joined: 23 Nov 2016 |
| Total Posts: 1613 |
|
| |
|
twinqle
|
  |
| Joined: 23 Nov 2016 |
| Total Posts: 1613 |
|
|
| 08 Sep 2017 01:15 PM |
How many times do i have to bump this x_x
you've been twinqled |
|
|
| Report Abuse |
|
|
twinqle
|
  |
| Joined: 23 Nov 2016 |
| Total Posts: 1613 |
|
| |
|
|
| 08 Sep 2017 01:25 PM |
this man must be very lonely, i feel bad :(
UP DAB DOWN DAB |
|
|
| Report Abuse |
|
|
| |
|