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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: "Wounded Script"

Previous Thread :: Next Thread 
sillytrew is online. sillytrew
Joined: 08 Jul 2012
Total Posts: 54
11 Jun 2017 09:25 PM
I have a script that is supposed to take a copy of an animate script with wounded animations and put it in StarterCharacterScripts but It doesn't.

Script:local animate = game.ServerStorage.Animate
local characterhum = script.Parent.Humanoid


if characterhum.Health == 50 then
animate.Parent = script.Parent
end




P.S the script is located in StarterCharacterScripts

Thanks in advance!
Report Abuse
ExtremeBuilder15 is online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
11 Jun 2017 09:34 PM
The way to play an animation is much different than this.

local animate = script.Parent.Animations.Animate -- It's good to put a folder in StarterCharacterScripts called Animations or something like that to store all of your animations.

To play the animation, you first have to load the animation into the humanoid.

local loadedAnimation = script.Parent.Humanoid:LoadAnimation(animate)

while wait(1) do
if script.Parent.Humanoid.Health <= 50 then
loadedAnimation:Play()
end
end

Report Abuse
sillytrew is online. sillytrew
Joined: 08 Jul 2012
Total Posts: 54
11 Jun 2017 09:51 PM
Thank you but I have a wounded walk animation
and idle animation and I don't know how to play those.
Report Abuse
Arawnio is not online. Arawnio
Joined: 04 Sep 2014
Total Posts: 85
11 Jun 2017 10:34 PM
You need to upload animations for using servers.


Report Abuse
sillytrew is online. sillytrew
Joined: 08 Jul 2012
Total Posts: 54
12 Jun 2017 05:47 PM
I did upload them.
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