|
| 15 Aug 2013 12:53 AM |
| Is it possible to hide a script that still runs? |
|
|
| Report Abuse |
|
|
|
| 15 Aug 2013 12:54 AM |
script.Parent = nil at the top should do the trick |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
| |
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
| |
|