|
| 10 Jan 2017 10:04 PM |
its supposed to play the animation when you click with the tool equipped but it doesn't work??
Tool = script.Parent local player = game.Players.LocalPlayer repeat wait() until player.Character ~= nil local hum = player.Character:WaitForChild("Humanoid")
local animation = Tool.TauntAnim local AnimTrack = hum:LoadAnimation(animation)
Tool.Activated:connect(function(mouse) AnimTrack:Play() end)
Tool.Unequuipped:connect(function() AnimTrack:Stop() end)
|
|
|
| Report Abuse |
|
|
|
| 11 Jan 2017 11:35 AM |
You Spelled Unequipped Wrong.
Tool = script.Parent local player = game.Players.LocalPlayer repeat wait() until player.Character ~= nil local hum = player.Character:WaitForChild("Humanoid")
local animation = Tool.TauntAnim local AnimTrack = hum:LoadAnimation(animation)
Tool.Activated:connect(function(mouse) AnimTrack:Play() end)
Tool.Unequipped:connect(function() AnimTrack:Stop() end)
|
|
|
| Report Abuse |
|
|
|
| 11 Jan 2017 06:26 PM |
| oops, i just fixed it and it still doesn't work :/? |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2017 11:57 AM |
I'm guessing the Output is blank to, Does the Functions event Fire?, Try putting some prints in there and see if everything works, If so then It's something with your animation
|
|
|
| Report Abuse |
|
|