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 issues.

Previous Thread :: Next Thread 
Vemeric is not online. Vemeric
Joined: 05 Dec 2012
Total Posts: 462
15 Sep 2016 12:59 PM
So I want this animation to be deleted from ANOTHER script. But I can't really figure out how.

character = Player.Character
local humanoid = character:FindFirstChild("Humanoid")
character.Humanoid.WalkSpeed = 6
animation = Instance.new("Animation", character)
animation.AnimationId = script.RightPunchCharge.Animation.Value
loadedAnimation = humanoid:LoadAnimation(animation)
animation.Name = "ChargePunch"
loadedAnimation:Play()


other script:
if game.Players.LocalPlayer.Character:FindFirstChild("ChargePunch") then
game.Players.LocalPlayer.Character.ChargePunch:remove()
end


Report Abuse
Fluffy_Husky is not online. Fluffy_Husky
Joined: 23 May 2016
Total Posts: 763
15 Sep 2016 01:01 PM
to remove a loaded anim you have to remove it from where it was loaded or get playing anims and stop them
Report Abuse
Vemeric is not online. Vemeric
Joined: 05 Dec 2012
Total Posts: 462
15 Sep 2016 01:17 PM
Right it's loaded in the humanoid. what do I do?


Report Abuse
Fluffy_Husky is not online. Fluffy_Husky
Joined: 23 May 2016
Total Posts: 763
15 Sep 2016 01:20 PM
print(animationtrack.Parent)
remove it from that parent
or parent it to the character if nil
Report Abuse
Vemeric is not online. Vemeric
Joined: 05 Dec 2012
Total Posts: 462
17 Sep 2016 07:58 AM
it's nil, I parented it to the character and nothing happened. The animation didnt stop.


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