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
|
  |
| 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
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
|
| 03 Aug 2013 07:57 PM |
| everything works except for water |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Aug 2013 07:58 PM |
| Is this water, a terrain block? |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
|
| 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 |
|
|