|
| 24 Oct 2016 03:34 PM |
Not like a block, but I mean the actual terrain thing in workspace (Idk what to call it, it isn't a service and instance feels wrong here)
I want to make a "Fix game" thing primarily to help fix an exploited server, so I can't just check if something's name is "Terrain" because then the exploiter can insert whatever and it'll stay so long as it is named "Terrain".
This isn't about exploiting though, just checking if something is not the actual instance (!?) "Terrain". |
|
|
| Report Abuse |
|
|
|
| 24 Oct 2016 03:46 PM |
Well der, store the actual terrain and check if any added items are called terrain but are not terrain (on the server) you can also just remove actual and check if any added items are named 'terrain' by itself but its just for safety
local actual = workspace.Terrain
workspace.DescendantAdded:connect(function(target) if target~=actual and target.Name=="Terrain" then --do things end end) |
|
|
| Report Abuse |
|
|
|
| 24 Oct 2016 03:59 PM |
Wunder, that isn't the best way, especially from a ModuleScript, which I should mention I'm using.
I actually discovered this though: Terrain has its own classname called "Terrain". So I am in luck! Thanks |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 24 Oct 2016 04:00 PM |
if thing:IsA('Terrain') then
|
|
|
| Report Abuse |
|
|