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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Add a special exception to terrain water

Previous Thread :: Next Thread 
RockTheMIC is not online. RockTheMIC
Joined: 22 Jul 2011
Total Posts: 2319
07 Dec 2015 06:49 PM
Lets say, I had a list of exceptions:

hit.Name ~= "derp" and hit.Name ~= "derp2" then

Is there any way, to also add an exception to terrain water?
Report Abuse
alphawolvess is not online. alphawolvess
Joined: 04 Jul 2012
Total Posts: 354
07 Dec 2015 06:56 PM
I do not think you're able to detect if you're actually hitting water, but you can see if you're touching terrain. ( if hit.Name == "Terrain" then ) Check this is right, I'm not sure, I did a test for this a long time ago and I could be wrong with the spelling. Just print hit.Name
Report Abuse
RockTheMIC is not online. RockTheMIC
Joined: 22 Jul 2011
Total Posts: 2319
07 Dec 2015 06:58 PM
This is actually for an explosion, and I want it to explode when hitting something solid (collidable and anchored) and terrain, but I don't want it to explode on terrain water. I already have the others down, but I haven't been able to find anything on terrain water.
Report Abuse
litalela is not online. litalela
Joined: 30 Mar 2010
Total Posts: 6267
07 Dec 2015 06:59 PM
sorry im not really sure about this so there is probably a better way

but if you cast a ray and do findpartonray, it returns surface normal which can be water so that could work

➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ
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