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 » Scripters
Home Search
 

Re: Turning Swimming on (Humanoid)

Previous Thread :: Next Thread 
lopsidedmail is not online. lopsidedmail
Joined: 29 Oct 2011
Total Posts: 253
10 Feb 2017 09:44 PM
I know that the humanoid has a function for swimming, but its more of a detection for it... Is there any way to actually turn terrain water swimming on w/o terrain water? Say like

Humanoid.Swimming = true

or something like that... ?
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
10 Feb 2017 09:48 PM
You probably will have to make a swimming animation and custom controls. Have fun.
Report Abuse
Equilibristic is not online. Equilibristic
Joined: 03 Sep 2010
Total Posts: 750
10 Feb 2017 09:55 PM
what are you trying to make lol


Report Abuse
lopsidedmail is not online. lopsidedmail
Joined: 29 Oct 2011
Total Posts: 253
10 Feb 2017 09:58 PM
A localscript where the player swims when they reach a height. I'm actually getting decently close to getting it to work... I just need a bit of help with

Humanoid:GetStateEnabled()

and

SetStateEnabled()

The wiki isn't really helping...
Report Abuse
foreverpower is not online. foreverpower
Joined: 05 Feb 2011
Total Posts: 5578
10 Feb 2017 10:04 PM
"You probably will have to make a swimming animation and custom controls"

Nope.


Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
10 Feb 2017 10:06 PM
Instead of saying "Nope", why don't you reveal the way to do it without doing that?
Report Abuse
foreverpower is not online. foreverpower
Joined: 05 Feb 2011
Total Posts: 5578
10 Feb 2017 10:07 PM
He already posted the answer.


Report Abuse
lopsidedmail is not online. lopsidedmail
Joined: 29 Oct 2011
Total Posts: 253
10 Feb 2017 10:09 PM
Like I said, I haven't figured out how to use the darn thing yet. I do this:

Human:ChangeState(Enum.HumanoidStateType.Swimming)

but the state changes as it does when the player moves so I'm trying to figure out how to change it via:

void SetStateEnabled (
HumanoidStateType state,
bool enabled
)


and


bool GetStateEnabled (
HumanoidStateType state
)


but the wiki doesnt give any examples...
Report Abuse
lopsidedmail is not online. lopsidedmail
Joined: 29 Oct 2011
Total Posts: 253
10 Feb 2017 10:19 PM
Ofc no1 responds....
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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