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 » Scripters
Home Search
 

Re: Is there a way I can tell if something is terrain?

Previous Thread :: Next Thread 
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
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
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
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
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
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 is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
24 Oct 2016 04:00 PM
if thing:IsA('Terrain') then


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