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: Walking animation - There Seems to be a problem

Previous Thread :: Next Thread 
NonSpeaker is not online. NonSpeaker
Joined: 24 Dec 2007
Total Posts: 1279
11 Apr 2012 04:58 PM
People of scripting helpers, this is quite urgent, If you can help me get this to work I'll give you 500 R$ for your appreciation
Basically what 's happening is the script works, but something's not making the function run properly, i've asked people like thomas and niels but niels managed to get the walking animation to work when i walk, but not when i stop.
If there's any takers, it must be one.

function Running()

if Running == true then
wait()

while Running do
for i = 1, 5 do
tw3.C0 = tw3.C0*CFrame.new(0,0,0.005)*CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)
tw4.C0 = tw4.C0*CFrame.new(0,0,0.005)*CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)
tw5.C0 = tw5.C0*CFrame.new(0,0,0.005)*CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)
tw6.C0 = tw6.C0*CFrame.new(0,0,0.005)*CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)
tw7.C0 = tw7.C0*CFrame.new(0,0,0.005)*CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)
tw8.C0 = tw8.C0*CFrame.new(0,0,0.005)*CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)
tw9.C0 = tw9.C0*CFrame.new(0,0,0.005)*CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)
tw10.C0 = tw10.C0*CFrame.new(0,0,0.005)*CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)
tw11.C0 = tw11.C0*CFrame.new(0,0,0.005)*CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)
tw12.C0 = tw12.C0*CFrame.new(0,0,0.005)*CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)
tw13.C0 = tw13.C0*CFrame.new(0,0,0.005)*CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)
tw14.C0 = tw14.C0*CFrame.new(0,0,0.005)*CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)
tw15.C0 = tw15.C0*CFrame.new(0,0,0.005)*CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)
wait()
end
wait(0.5)
for i = 1, 5 do
tw3.C0 = tw7.C0*CFrame.new(0,0,-0.005)*CFrame.fromEulerAnglesXYZ(math.rad(1),0,0)
tw4.C0 = tw7.C0*CFrame.new(0,0,-0.005)*CFrame.fromEulerAnglesXYZ(math.rad(1),0,0)
tw5.C0 = tw8.C0*CFrame.new(0,0,-0.005)*CFrame.fromEulerAnglesXYZ(math.rad(1),0,0)
tw6.C0 = tw9.C0*CFrame.new(0,0,-0.005)*CFrame.fromEulerAnglesXYZ(math.rad(1),0,0)
tw7.C0 = tw7.C0*CFrame.new(0,0,-0.005)*CFrame.fromEulerAnglesXYZ(math.rad(1),0,0)
tw8.C0 = tw8.C0*CFrame.new(0,0,-0.005)*CFrame.fromEulerAnglesXYZ(math.rad(1),0,0)
tw9.C0 = tw9.C0*CFrame.new(0,0,-0.005)*CFrame.fromEulerAnglesXYZ(math.rad(1),0,0)
tw10.C0 = tw10.C0*CFrame.new(0,0,-0.005)*CFrame.fromEulerAnglesXYZ(math.rad(1),0,0)
tw11.C0 = tw11.C0*CFrame.new(0,0,-0.005)*CFrame.fromEulerAnglesXYZ(math.rad(1),0,0)
tw12.C0 = tw12.C0*CFrame.new(0,0,-0.005)*CFrame.fromEulerAnglesXYZ(math.rad(1),0,0)
tw13.C0 = tw13.C0*CFrame.new(0,0,-0.005)*CFrame.fromEulerAnglesXYZ(math.rad(1),0,0)
tw14.C0 = tw14.C0*CFrame.new(0,0,-0.005)*CFrame.fromEulerAnglesXYZ(math.rad(1),0,0)
tw15.C0 = tw15.C0*CFrame.new(0,0,-0.005)*CFrame.fromEulerAnglesXYZ(math.rad(1),0,0)
wait()
end
end
end
if Running == false then
tw3.C0 = CFrame.new(0,-0.5,0)*CFrame.fromEulerAnglesXYZ(math.rad(-5),0,0)
tw4.C0 = CFrame.new(0,-0.5,0)*CFrame.fromEulerAnglesXYZ(math.rad(-5),0,0)
tw5.C0 = CFrame.new(0,-0.5,0)*CFrame.fromEulerAnglesXYZ(math.rad(-5),0,0)
tw6.C0 = CFrame.new(0,-0.5,0)*CFrame.fromEulerAnglesXYZ(math.rad(-5),0,0)
tw7.C0 = CFrame.new(0,-0.5,0)*CFrame.fromEulerAnglesXYZ(math.rad(-5),0,0)
tw8.C0 = CFrame.new(0,-0.5,0)*CFrame.fromEulerAnglesXYZ(math.rad(-5),0,0)
tw9.C0 = CFrame.new(0,-0.5,0)*CFrame.fromEulerAnglesXYZ(math.rad(-2.5),0,0)
tw10.C0 = CFrame.new(0,-0.5,0)*CFrame.fromEulerAnglesXYZ(math.rad(-2.5),0,0)
tw11.C0 = CFrame.new(0,-0.5,0)*CFrame.fromEulerAnglesXYZ(math.rad(-2.5),0,0)
tw12.C0 = CFrame.new(0,-0.5,0)*CFrame.fromEulerAnglesXYZ(math.rad(-2.5),0,0)
tw13.C0 = CFrame.new(0,-0.5,-0.025)*CFrame.fromEulerAnglesXYZ(math.rad(0),0,0)
tw14.C0 = CFrame.new(0,-0.5,-0.025)*CFrame.fromEulerAnglesXYZ(math.rad(0),0,0)
tw15.C0 = CFrame.new(0,-0.5,-0.025)*CFrame.fromEulerAnglesXYZ(math.rad(0),0,0)
wait(0.5)
end
end
Roy.Humanoid.Running:connect(Running)
Report Abuse
callmeduck2 is not online. callmeduck2
Joined: 18 Jan 2010
Total Posts: 2804
11 Apr 2012 05:00 PM
sometimes it doesnt work in studio. have you tried in other game instances? like 'Play'?

~Working towards that PSTF..~
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
11 Apr 2012 05:04 PM
Your problem is that the loop continues until the number limit is reached. What needs to happen is that it checks if the player is STILL running during the loop, if not just 'break' it.
Report Abuse
NonSpeaker is not online. NonSpeaker
Joined: 24 Dec 2007
Total Posts: 1279
11 Apr 2012 05:07 PM
MrNicNac - In what line(s) do you mean? please explain.
Sometimes people confuse me. Copy and paste them for your definition?
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