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: Water?

Previous Thread :: Next Thread 
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
03 Aug 2013 07:35 PM
This script works for everything accept for water, Why doesn't water work?


local not_allowed = {
"LevelUpVendingMachine";
"RocketLauncherDispenser";
"SuperballDispenser";
"TimebombDispenser";
"TrowelDispenser";
"C4Explosive";
"UFO";
"Sword";
"Spikes";
"Spikes-Moving";
"Water";
"",
}
wait()
Workspace.ChildAdded:connect(function(x)
for _, v in pairs(not_allowed) do
if x.Name == v then
wait()
x:Remove()
end
end
end)
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
03 Aug 2013 07:37 PM
local not_allowed = {
"LevelUpVendingMachine";
"RocketLauncherDispenser";
"SuperballDispenser";
"TimebombDispenser";
"TrowelDispenser";
"C4Explosive";
"UFO";
"Sword";
"Spikes";
"Spikes-Moving";
"Water";
"",
}
wait()
Workspace.ChildAdded:connect(function(x)
for _, v in pairs(not_allowed) do
if string.lower(x.Name) == string.lower(v) then
wait()
x:Destroy()
end
end
end)
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
03 Aug 2013 07:57 PM
everything works except for water
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Aug 2013 07:58 PM
Is this water, a terrain block?
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
03 Aug 2013 08:10 PM
It's a block used in personal servers, I got all the others to work but not water
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
03 Aug 2013 08:44 PM
help
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
03 Aug 2013 08:49 PM
I have no idea what r u r talking about,

but just in case I do: When hit by a Ray for example, Water Terrain will return 'Part hit' as "Terrain"; not "Water", as will all the other Terrain Types....





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