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 |
|
|
|
| 13 Dec 2013 12:58 PM |
| If animationstopped then break end |
|
|
| Report Abuse |
|
|
Shonysky
|
  |
| Joined: 05 Aug 2013 |
| Total Posts: 361 |
|
| |
|
Shonysky
|
  |
| Joined: 05 Aug 2013 |
| Total Posts: 361 |
|
| |
|
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 |
|
|
|
| 13 Dec 2013 01:02 PM |
| Did you define "animationstopped"? |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 13 Dec 2013 01:08 PM |
@sky
I am currently on mobile, can't type much. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| Joined: 05 Aug 2013 |
| Total Posts: 361 |
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 13 Dec 2013 01:27 PM |
Vaporation, right now your not on mobile |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|