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: Animating

Previous Thread :: Next Thread 
ZeroHour66 is not online. ZeroHour66
Joined: 14 Sep 2013
Total Posts: 1511
29 Dec 2014 02:40 AM
Okay, so I already know how to make an animation,(which is really pretty simple so I feel stupid saying that as though it means something), but How would I go about putting it into the player, then what would I put into a function to play it? I'm trying to get the animation to play in the character when they Press Q. I already have the function, for when the player presses Q, something happens.
Report Abuse
ZeroHour66 is not online. ZeroHour66
Joined: 14 Sep 2013
Total Posts: 1511
29 Dec 2014 03:08 AM
Also, I checked out the wiki. It didn't help much in terms of how to get it into the player then play it
Report Abuse
Varyze is not online. Varyze
Joined: 19 Feb 2012
Total Posts: 3135
29 Dec 2014 03:13 AM
function onpress blah blah blah 'q'


workspace.Player.Animate.walk.WalkAnim.AnimationId = 'idididididid'




animation isnt my game, so idk.
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
29 Dec 2014 03:14 AM
smok wed eryday
Report Abuse
Pihs is not online. Pihs
Joined: 26 Dec 2014
Total Posts: 813
29 Dec 2014 03:26 AM
@Var

Stop answering threads when you know nothing.

you'll have to use plr = game.Players.LocalPlater, then plr:GetMouse, and you'll have to use :keydown() function also, I suggest looking it up in the wiki.

It explains it well.


Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
29 Dec 2014 03:27 AM
Use the input service because it's cooler and a sign of higher skill level.
Report Abuse
maddog645 is not online. maddog645
Joined: 02 Dec 2009
Total Posts: 46
29 Dec 2014 06:31 AM
If you want the animation to fire while holding a tool, you can try this.
1) Place your animation and script in the handle of the tool and script
script:
local animation = script.Parent.(the name of your animation) -- leave out the brackets
local tool = script.Parent.Parent
tool.Equipped:connect(function(mouse) -- gets the mouse
mouse.Button1Down:connect(function(key) -- gets the key
if key:lower() == "q" then --key:lower() means for all alphabets in lowercase(not capital letters)
tool.Parent.Humanoid:LoadAnimation(the name of your animation):Play() --keep the brackets
end
end)
end)



--This should work but if your animation is very long, it will keep running then you have to put
--wait(??) ?? is the whole time taken for your animation
--tool.Parent.Humanoid:LoadAnimation(the name of your animation):Stop()

You can message me if it doesn't work as expected
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