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 » Scripting Helpers
Home Search
 

Re: Edited Animation Script Doesn't Work?

Previous Thread :: Next Thread 
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
21 Sep 2013 07:20 PM
I edited this animation script from the default one that is in the character. This part doesn't work. How come?

function onRunning(speed)
if speed>0 then
pose = "Running"
while pose == "Running" do
--script.Parent.LeftBackarm["Left Elbow"].C0 = script.Parent.LeftBackarm["Left Elbow"].C0 * CFrame.Angles(1,0,0)
--script.Parent.RightBackarm["Right Elbow"].C0 = script.Parent.RightBackarm["Right Elbow"].C0 * CFrame.Angles(1,0,0)
for i = 1,6 do
script.Parent.Torso["Left Hip"].C0 = script.Parent.Torso["Left Hip"].C0 * CFrame.Angles(.15,0,0)
script.Parent.LeftThigh["Left Knee"].C0 = script.Parent.LeftThigh["Left Knee"].C0 * CFrame.Angles(.2,0,0)
script.Parent.RightThigh["Right Knee"].C0 = script.Parent.RightThigh["Right Knee"].C0 * CFrame.Angles(-.2,0,0)
script.Parent.Torso["Right Hip"].C0 = script.Parent.Torso["Right Hip"].C0 * CFrame.Angles(-.15,0,0)
script.Parent.Torso["Left Shoulder"].C0 = script.Parent.Torso["Left Shoulder"].C0 * CFrame.Angles(.15,0,0)
script.Parent.Torso["Right Shoulder"].C0 = script.Parent.Torso["Right Shoulder"].C0 * CFrame.Angles(-.15,0,0)
wait()
end
for i = 1,6 do
script.Parent.Torso["Left Hip"].C0 = script.Parent.Torso["Left Hip"].C0 * CFrame.Angles(-.15,0,0)
script.Parent.Torso["Right Hip"].C0 = script.Parent.Torso["Right Hip"].C0 * CFrame.Angles(.15,0,0)
script.Parent.LeftThigh["Left Knee"].C0 = script.Parent.LeftThigh["Left Knee"].C0 * CFrame.Angles(-.2,0,0)
script.Parent.RightThigh["Right Knee"].C0 = script.Parent.RightThigh["Right Knee"].C0 * CFrame.Angles(.2,0,0)
script.Parent.Torso["Left Shoulder"].C0 = script.Parent.Torso["Left Shoulder"].C0 * CFrame.Angles(-.15,0,0)
script.Parent.Torso["Right Shoulder"].C0 = script.Parent.Torso["Right Shoulder"].C0 * CFrame.Angles(.15,0,0)
wait()
end
for i = 1,6 do
script.Parent.Torso["Left Hip"].C0 = script.Parent.Torso["Left Hip"].C0 * CFrame.Angles(-.15,0,0)
script.Parent.Torso["Right Hip"].C0 = script.Parent.Torso["Right Hip"].C0 * CFrame.Angles(.15,0,0)
script.Parent.LeftThigh["Left Knee"].C0 = script.Parent.LeftThigh["Left Knee"].C0 * CFrame.Angles(-.2,0,0)
script.Parent.RightThigh["Right Knee"].C0 = script.Parent.RightThigh["Right Knee"].C0 * CFrame.Angles(.2,0,0)
script.Parent.Torso["Left Shoulder"].C0 = script.Parent.Torso["Left Shoulder"].C0 * CFrame.Angles(-.15,0,0)
script.Parent.Torso["Right Shoulder"].C0 = script.Parent.Torso["Right Shoulder"].C0 * CFrame.Angles(.15,0,0)
wait()
end
for i = 1,6 do
script.Parent.Torso["Left Hip"].C0 = script.Parent.Torso["Left Hip"].C0 * CFrame.Angles(.15,0,0)
script.Parent.Torso["Right Hip"].C0 = script.Parent.Torso["Right Hip"].C0 * CFrame.Angles(-.15,0,0)
script.Parent.LeftThigh["Left Knee"].C0 = script.Parent.LeftThigh["Left Knee"].C0 * CFrame.Angles(.2,0,0)
script.Parent.RightThigh["Right Knee"].C0 = script.Parent.RightThigh["Right Knee"].C0 * CFrame.Angles(-.2,0,0)
script.Parent.Torso["Left Shoulder"].C0 = script.Parent.Torso["Left Shoulder"].C0 * CFrame.Angles(.15,0,0)
script.Parent.Torso["Right Shoulder"].C0 = script.Parent.Torso["Right Shoulder"].C0 * CFrame.Angles(-.15,0,0)
wait()
end
end
else
pose = "Standing"
end
end


Age of War Update Forum: [http://www.roblox.com/Forum/ShowPost.aspx?PostID=110942955]
Report Abuse
darthpyro is not online. darthpyro
Joined: 18 Aug 2009
Total Posts: 3569
21 Sep 2013 07:22 PM
Got an output? This is REALLY the kind of script that you need an output for...
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
21 Sep 2013 07:23 PM
No output. Sorry, I forgot to mention that

Age of War Update Forum: [http://www.roblox.com/Forum/ShowPost.aspx?PostID=110942955]
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
21 Sep 2013 07:23 PM
Define "speed."
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
21 Sep 2013 07:24 PM
speed is defined later on

Age of War Update Forum: [http://www.roblox.com/Forum/ShowPost.aspx?PostID=110942955]
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
21 Sep 2013 08:21 PM
?

Age of War Update Forum: [http://www.roblox.com/Forum/ShowPost.aspx?PostID=110942955]
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
22 Sep 2013 10:26 AM
bump

Age of War Update Forum: [http://www.roblox.com/Forum/ShowPost.aspx?PostID=110942955]
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
22 Sep 2013 10:39 AM
What is "Pose?"
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
22 Sep 2013 05:23 PM
It is simply just a variable to determine which animation is playing. Its not an actual object

Age of War Update Forum: [http://www.roblox.com/Forum/ShowPost.aspx?PostID=110942955]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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