|
| 18 Jan 2016 05:26 PM |
No error, it just wont play the animation.
script.Parent.Equipped:connect(function(mouse) local Player = script.Parent.Parent local FindAnimationController = Player:FindFirstChild("AnimationController") if FindAnimationController then --Do nothing... else AnimationController = Instance.new("AnimationController", Player) end end)
function onActivation() print("Go") local Anim = Instance.new("Animation", script.Parent.Parent) Anim.Name = "AttackOne" Anim.AnimationId = "http://www.roblox.com/Asset?ID=28090053" local AnimControl = AnimationController:LoadAnimation(Anim) AnimControl:Play() print("Play") wait(2) end
script.Parent.Activated:connect(onActivation) |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2016 05:27 PM |
| this is a script inside a tool btw |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Jan 2016 03:24 PM |
maybe because you're telling the script to then else..?
sweg |
|
|
| Report Abuse |
|
|