CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 07 May 2017 04:40 PM |
i exported it using the editor and everything, but when I try to load it the the player it doesn't do anything. It has been >24 hrs since I uploaded the anim and still nothing.
|
|
|
| Report Abuse |
|
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
| |
|
Eventive
|
  |
| Joined: 28 Jul 2011 |
| Total Posts: 9827 |
|
|
| 07 May 2017 04:50 PM |
Code? Errors?
ATR'er since 2013. |
|
|
| Report Abuse |
|
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 07 May 2017 04:51 PM |
No errors. Here's the code(its a bit long, I'm only worried about the anim)
working = false w########### .5 mouse = script.Parent.Parent.Parent:GetMouse() player = script.Parent.Parent.Parent
script.Parent.Activated:connect(function() local anim = script.Parent.Parent.Humanoid:LoadAnimation(script.Parent.MiningAnim01) if mouse.Target then if string.sub(mouse.Target.Name, 1, 5) == "Stone" and working == false then working = true local target = mouse.Target local targetnum = (waitFactor*tonumber(string.sub(mouse.Target.Name, 6, 6))) player.PlayerGui.Inventory.ProgressBar.Visible = true mouse.Target.Name = "null_stone"..tonumber(string.sub(mouse.Target.Name, 6, 6)) anim:Play() script.Parent.Parent.Humanoid.WalkSpeed = 0 script.Parent.Parent.Humanoid.JumpPower = 0 for i=1, targetnum do wait(1) script.Parent.Handle.Sound:Play() pl#################################################### pl#################################################### UDim2.new(1/targetnum, 0, 0, 0) end wait(1) for i = 1, targetnum/waitFactor do local rock = Instance.new("Part") local force = Instance.new("BodyVelocity") force.velocity = Vector3.new(0, 5, 0) rock.Name = "Item_Rock" rock.Size = Vector3.new(1, 1, 1) rock.Material = "Marble" rock.BrickColor = BrickColor.new("Hurricane grey") rock.Shape = "Ball" rock.CFrame = target.CFrame + Vector3.new(0, i/5, 0) rock.Parent = workspace wait(0.01) force:remove() end target.Parent = game.Lighting script.Parent.Handle.Break:Play() anim:stop() pl#################################################### UDim2.new(0, 0,##,##)## # pl################################################alse script.Parent.Parent.Humanoid.WalkSpeed = 16 script.Parent.Parent.Humanoid.JumpPower = 50 working = false end end end)
|
|
|
| Report Abuse |
|
|
Eventive
|
  |
| Joined: 28 Jul 2011 |
| Total Posts: 9827 |
|
|
| 07 May 2017 04:52 PM |
does everything else work?
ATR'er since 2013. |
|
|
| Report Abuse |
|
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 07 May 2017 04:54 PM |
everything works as planned except for the animation.
|
|
|
| Report Abuse |
|
|
Eventive
|
  |
| Joined: 28 Jul 2011 |
| Total Posts: 9827 |
|
|
| 07 May 2017 04:58 PM |
Are you using the script in your own place or group place?
ATR'er since 2013. |
|
|
| Report Abuse |
|
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 07 May 2017 04:59 PM |
my own place, local script, only in test mode so far
|
|
|
| Report Abuse |
|
|
Eventive
|
  |
| Joined: 28 Jul 2011 |
| Total Posts: 9827 |
|
|
| 07 May 2017 05:01 PM |
well you defined the player is the player actually the player, os is it the character?
If it's the player create a variable for the character b doing this
repeat wait() until player.Character local char = player.Character
then do char.Humanoid:LoadAnimation()
ATR'er since 2013. |
|
|
| Report Abuse |
|
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 07 May 2017 05:04 PM |
I'll try that, but the way I have it relies on the tool being a child of the Character when its used, but a child of Player when the script begins.
|
|
|
| Report Abuse |
|
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
| |
|
Eventive
|
  |
| Joined: 28 Jul 2011 |
| Total Posts: 9827 |
|
|
| 07 May 2017 05:11 PM |
so then do char = script.Parent.Parent
char.Humanoid:LoadAnimation()
ATR'er since 2013. |
|
|
| Report Abuse |
|
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 07 May 2017 05:37 PM |
| I got it "working"> My main problem was I was using R15 anims in an ## ###### so I made an R6 anim. However, now its glitching out because of what I'm assuming is the anim playing over the default PC anims. Any way to stop those for the duration of my custom anim? |
|
|
| Report Abuse |
|
|