generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Animation wont run

Previous Thread :: Next Thread 
Gameplayer1500 is not online. Gameplayer1500
Joined: 26 Sep 2009
Total Posts: 3293
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
Gameplayer1500 is not online. Gameplayer1500
Joined: 26 Sep 2009
Total Posts: 3293
18 Jan 2016 05:27 PM
this is a script inside a tool btw
Report Abuse
Gameplayer1500 is not online. Gameplayer1500
Joined: 26 Sep 2009
Total Posts: 3293
20 Jan 2016 02:57 PM
help pl0x
Report Abuse
Jackbuilder02 is not online. Jackbuilder02
Joined: 01 Mar 2012
Total Posts: 204
20 Jan 2016 03:24 PM
maybe because you're telling the script to then else..?


sweg
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image