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: Break

Previous Thread :: Next Thread 
Shonysky is not online. Shonysky
Joined: 05 Aug 2013
Total Posts: 361
13 Dec 2013 12:53 PM
When the character is running( walking ) then the script runs a animation, if character stops walking, the animation stops imediatelly.
How can i make the animation stops with a break on the loop?
Report Abuse
Vaporation is not online. Vaporation
Joined: 08 Jun 2011
Total Posts: 1397
13 Dec 2013 12:58 PM
If animationstopped then break end
Report Abuse
Shonysky is not online. Shonysky
Joined: 05 Aug 2013
Total Posts: 361
13 Dec 2013 12:58 PM
bump
Report Abuse
Shonysky is not online. Shonysky
Joined: 05 Aug 2013
Total Posts: 361
13 Dec 2013 12:58 PM
k
Report Abuse
Shonysky is not online. Shonysky
Joined: 05 Aug 2013
Total Posts: 361
13 Dec 2013 01:00 PM
Doesnt worked, PLEASE SOMEONE HELP ME, can you send me a way to do?
Report Abuse
Vaporation is not online. Vaporation
Joined: 08 Jun 2011
Total Posts: 1397
13 Dec 2013 01:02 PM
Did you define "animationstopped"?
Report Abuse
skyarex is not online. skyarex
Joined: 21 Mar 2010
Total Posts: 12989
13 Dec 2013 01:05 PM
@vap


Why do users like you exist?

Who clearly have no interest in helping others, but would rather spew absolutely useless information at people.


"Don't Panic"- HHGTTG
Report Abuse
Shonysky is not online. Shonysky
Joined: 05 Aug 2013
Total Posts: 361
13 Dec 2013 01:06 PM
Vaporation,


while char.Humanoid.Runnning do
print("bla")
if not char.Humanoid.Running do
break
end
end
Report Abuse
Vaporation is not online. Vaporation
Joined: 08 Jun 2011
Total Posts: 1397
13 Dec 2013 01:08 PM
@sky

I am currently on mobile, can't type much.
Report Abuse
Shonysky is not online. Shonysky
Joined: 05 Aug 2013
Total Posts: 361
13 Dec 2013 01:08 PM
i send the script, can you see the problem please?
Report Abuse
Vaporation is not online. Vaporation
Joined: 08 Jun 2011
Total Posts: 1397
13 Dec 2013 01:11 PM
while char.Humanoid.Runnning == true do
print("bla")
if char.Humanoid.Running ~= true then
break
end
end
Report Abuse
Shonysky is not online. Shonysky
Joined: 05 Aug 2013
Total Posts: 361
13 Dec 2013 01:14 PM
Does nothing
Report Abuse
Shonysky is not online. Shonysky
Joined: 05 Aug 2013
Total Posts: 361
13 Dec 2013 01:19 PM
bump, if someone knows how to help me, please reply this, i really need
Report Abuse
Vaporation is not online. Vaporation
Joined: 08 Jun 2011
Total Posts: 1397
13 Dec 2013 01:26 PM
Really sorry about the faulty script, it's like 3:25AM here.
Anyways you should use the Running event, it's not in the properties of Humanoid.
Here is an example from the Roblox Wiki.

game.Workspace.Player.Humanoid.Running:connect(function(speed)
if speed > 0 then
print("Player is running")
else
print("Player has stopped")
end
end)
Report Abuse
halofire902 is not online. halofire902
Joined: 30 May 2010
Total Posts: 1587
13 Dec 2013 01:27 PM
Vaporation,
right now your not on mobile
Report Abuse
Shonysky is not online. Shonysky
Joined: 05 Aug 2013
Total Posts: 361
13 Dec 2013 01:27 PM
but when i stop walking, the animation repeats and then stop, how can i make it stop imediatelly?
Report Abuse
Vaporation is not online. Vaporation
Joined: 08 Jun 2011
Total Posts: 1397
13 Dec 2013 01:36 PM
local running;

function something()
while wait() do
if running then
print("running")
else
print("stopped")
break
end
end
end

char.Humanoid.Running:connect(function(speed)
if speed > 0 then
running = true
else
running = false
end
something()
end)
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