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
 

help this isnt working!

Previous Thread :: Next Thread 
johnville is not online. johnville
Joined: 12 Oct 2008
Total Posts: 388
29 Apr 2016 12:57 AM
this is just part of the script


function Equip(mouse)
if Speed > 0 then
AnimTrack4:Play()



this is supposed to make the animation play when i move
Report Abuse
xHxa is not online. xHxa
Joined: 13 Jul 2014
Total Posts: 990
29 Apr 2016 01:04 AM
Is it the Player or Non-Character?
If it is the Player have you loaded the animation previously?
Report Abuse
Dralian is not online. Dralian
Joined: 21 Mar 2013
Total Posts: 7624
29 Apr 2016 05:48 AM
How does that help us solve your problem?
Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
29 Apr 2016 09:06 AM
I...What?
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
29 Apr 2016 10:35 AM
load the animation on the humanoid first


Report Abuse
johnville is not online. johnville
Joined: 12 Oct 2008
Total Posts: 388
29 Apr 2016 02:57 PM
my bad i did not give enough info.. so in a tool.. i want to play an animation when the player moves *with it equipped* and stops playing when the player stops moving, i can figure out the unequip part

this is another part of the script

local player = game.Players.LocalPlayer
repeat wait() until player.Character ~= nil
local hum = player.Character:WaitForChild("Humanoid")
local animation4 = Tool.RunAni
local AnimTrack4 = hum:LoadAnimation(animation4)


function Equip(mouse)
if hum Speed > 0
then
AnimTrack4:Play()


and yes its player
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