DanPai
|
  |
| Joined: 03 Jun 2016 |
| Total Posts: 355 |
|
|
| 24 Aug 2017 06:46 AM |
Now that I have your attention, can you answer my question...
I have this in a localscript inside of a tool, but it only works in studio. Also, I have FE on.
Tool = script.Parent local player = game.Players.LocalPlayer local char = player.Character or player.CharactedAdded:wait() local hum = char:WaitForChild("Humanoid") local Mouse = player:GetMouse() local animation = Tool:WaitForChild('Animation') local AnimTrack = hum:LoadAnimation(animation)
debounce = false
Tool.Equipped:connect(function() Mouse.Button1Down:connect(function() if debounce == false then debounce = true AnimTrack:Play() wait(2) debounce = false end end) end)
Why won't this work?
Also, I have tried making the connects into Connects |
|
|
| Report Abuse |
|
DanPai
|
  |
| Joined: 03 Jun 2016 |
| Total Posts: 355 |
|
| |