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: Hide a script

Previous Thread :: Next Thread 
quickfrozen is not online. quickfrozen
Joined: 28 Dec 2009
Total Posts: 382
15 Aug 2013 12:53 AM
Is it possible to hide a script that still runs?
Report Abuse
SpleenYanks is not online. SpleenYanks
Joined: 24 Aug 2008
Total Posts: 921
15 Aug 2013 12:54 AM
script.Parent = nil
at the top should do the trick
Report Abuse
quickfrozen is not online. quickfrozen
Joined: 28 Dec 2009
Total Posts: 382
15 Aug 2013 12:59 AM
Thanks, just wondering... if i run this script, then hit play button in studio to start the server scripts then hit pause and save the game, is the script hidden ingame when the game starts up in online/play mode
Report Abuse
Foxconn is not online. Foxconn
Joined: 20 Feb 2011
Total Posts: 275
15 Aug 2013 01:03 AM
What are you trying to hide it from?
You could just put it in Lighting if that would work for what you are needing.
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
15 Aug 2013 01:09 AM
Exploiters can see scripts in workspace, lighting, and other services. If you set an object's parent to nil then it will not be visible to an exploiter or hacker.
Report Abuse
xXxkarlxXx is not online. xXxkarlxXx
Joined: 05 Feb 2009
Total Posts: 269
15 Aug 2013 01:17 AM
@quickfrozen,

Add this to the start of your script:

repeat wait() until game:service'NetworkServer'
script.Parent=nil
Report Abuse
quickfrozen is not online. quickfrozen
Joined: 28 Dec 2009
Total Posts: 382
15 Aug 2013 01:20 AM
^What will this do?
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
15 Aug 2013 01:21 AM
It does pretty much the same as:

script.Parent = nil
Report Abuse
quickfrozen is not online. quickfrozen
Joined: 28 Dec 2009
Total Posts: 382
15 Aug 2013 01:31 AM
kk, one more thing, not about the hidden script - how do i check if somthing is not ingame?
Report Abuse
Foxconn is not online. Foxconn
Joined: 20 Feb 2011
Total Posts: 275
15 Aug 2013 01:35 AM
you can do

repeat wait() until game.Workspace:findFirstChild("NAME") == nil
if game.Workspace:findFirstChild("NAME") == nil then

...

end
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
15 Aug 2013 01:37 AM
if not game.Workspace:FindFirstChild("Part") then
print "Part is not in workspace."
end
Report Abuse
quickfrozen is not online. quickfrozen
Joined: 28 Dec 2009
Total Posts: 382
15 Aug 2013 01:43 AM
Thanks
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