|
| 13 Jun 2012 08:36 AM |
| How would I detect if a character is swimming in a loop. I know the connection function is humanoid.Swimming:connect() but that won't help me in a loop. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 13 Jun 2012 08:48 AM |
try dis
while true do humanoid.Swimming:wait() print("loops when swimming") end |
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Jun 2012 08:58 AM |
| Wait how would I get an else event from that? Cause I need something to happen both when the player is swimming, and not swimming. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 13 Jun 2012 09:03 AM |
Umm.. Try the running event?
|
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Jun 2012 09:19 AM |
| Wait nevermind I did it wrong. Its working now thanks! |
|
|
| Report Abuse |
|
|