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
 

Swimming Detection

Previous Thread :: Next Thread 
SilverNinja14 is not online. SilverNinja14
Joined: 16 Mar 2010
Total Posts: 1038
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 is not online. 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
SilverNinja14 is not online. SilverNinja14
Joined: 16 Mar 2010
Total Posts: 1038
13 Jun 2012 08:52 AM
Worked thanks.
Report Abuse
SilverNinja14 is not online. SilverNinja14
Joined: 16 Mar 2010
Total Posts: 1038
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 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
13 Jun 2012 09:03 AM
Umm.. Try the running event?

Report Abuse
SilverNinja14 is not online. SilverNinja14
Joined: 16 Mar 2010
Total Posts: 1038
13 Jun 2012 09:18 AM
That didnt work.
Report Abuse
SilverNinja14 is not online. SilverNinja14
Joined: 16 Mar 2010
Total Posts: 1038
13 Jun 2012 09:19 AM
Wait nevermind I did it wrong. Its working now thanks!
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