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: Swimming Event Help

Previous Thread :: Next Thread 
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
07 Jul 2012 11:46 PM
I recently looked in the wiki and saw the Swimming Event and decided to test it. I made a normal terrain place and added some water and added the script that the wiki gave:
game.Workspace.Player.Humanoid.Swimming:connect(function(speed)
print(speed)
end)
I've tried in both Solo and Start Server/Player and I get nothing from output. Anybody know what is causing this or if there is another way to check if a player is swimming.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
07 Jul 2012 11:52 PM
Bump...
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
08 Jul 2012 12:13 AM
Halp-of-teh-plox?
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
08 Jul 2012 12:19 AM
You're doing something wrong.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
08 Jul 2012 12:20 AM
:O
Explain. That script is from the wiki and I wanted to test it.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
08 Jul 2012 12:21 AM
Yeah I know. I checked. You must not have actual terrain water. I know I don't say this very often but try a free model terrain water because the only thing I could think of is you don't actually have terrain water :/
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
08 Jul 2012 12:22 AM
I have the terrain water. I mean doesn't the Material Brush turn normal terrain into Water if I choose it?
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
08 Jul 2012 12:24 AM
Compare with a free model
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
08 Jul 2012 12:26 AM
But you can't save terrain as a model, right?
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
08 Jul 2012 12:29 AM
http://www.roblox.com/Catalog.aspx?m=PublicDomain&c=10&t=AllTime&d=All&q=water+terrain

Lots of results you can look at.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
08 Jul 2012 12:30 AM
I saved my current terrain as a model and made a new place. Then I went to my models and tried to insert my terrain and I get an error message and output gives me this:
Unable to change Terrain's parent. Workspace already has Terrain
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
08 Jul 2012 12:32 AM
That's because you already have a terrain. Remove it.

script.Parent:Clear()
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
08 Jul 2012 12:34 AM
It cleared the terrain cells I had made but it still has the Terrain Object in workspace and if i try to put the model it gives me the same thing. I don't know why it isn't working. I mean the water works and everything but I think that the Swimming Event needs to be looked at.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
08 Jul 2012 12:35 AM
I tried Destroy() on it but it gives me this
00:35:15 - The Parent property of Workspace.Terrain is locked
00:35:15 - Script "Workspace.Terrain.Script", Line 1
00:35:15 - stack end
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
08 Jul 2012 12:37 AM
You ask too many questions and makes my brain explode ._.

It's probably right, you're just doing something wrong. The swimming event was one of the latest updated events(maybe the latest, but one of the latest.) And I'm pretty sure the person that wrote that article wasn't wrong because roblox wouldn't update it so quickly.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
08 Jul 2012 12:40 AM
If I am doing something wrong, I honestly have no idea what it is. I mean I have everything needed for it to print it out as that script came directly from the wiki. honestly, I have no idea.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
08 Jul 2012 12:47 AM
I just made another new place and used the Terrain Generator. For some reason it worked with the Terrain Generator but not with Material Brush.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
08 Jul 2012 12:55 AM
Now I just made another place and used the terrain brush as opposed to the terrain generator and then splattered the material brush on water in the middle of it and used the same code from the wiki but it didn't work at all. But then I decided to edit it and I made it into a localscript and put it in the Startergui with this in it and it worked.
game.Players.LocalPlayer.Character.Humanoid.Swimming:connect(function(speed)
print(speed)
end)

Now that I have that figured out, how would I go about to check how long a person has been "Swimming:?
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