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 » Game Design
Home Search
 

Animation plays when Gui Button is clicked

Previous Thread :: Next Thread 
MagicRamenTheReturn is not online. MagicRamenTheReturn
Joined: 24 Dec 2014
Total Posts: 9337
26 Dec 2015 09:05 PM
Does anyone know how to make a Gui button on click that makes an animation play?
And when it is clicked a 2nd time it stops?
Thanks for any help you give.



I got 99 problems but OTing isnt one
Report Abuse
alphaboy299 is not online. alphaboy299
Joined: 15 Jun 2013
Total Posts: 1496
26 Dec 2015 10:03 PM
Something like-

check = true

gui.MouseButton1Down:connect(function()
if check then
playanim = Humanoid:LoadAnimation(anim)
playanim:Play()
check = false
elseif not check then
playanim:Stop()
end


or something like that.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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