Florys2
|
  |
| Joined: 10 Sep 2009 |
| Total Posts: 1166 |
|
| |
|
|
| 15 Sep 2013 05:03 PM |
script.Parent = nil
or
script.Parent.DescendantRemoving:connect(function(Object) if Object == script then script:Clone().Parent = script.Parent end)
First one works best, because with the script one script.Disabled = true will make it removable. |
|
|
| Report Abuse |
|
|
Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
|
| 15 Sep 2013 05:11 PM |
Make it unarchivable or archivable idk |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2013 05:13 PM |
if its for anti-hack then script.Parent = nil will still allow hackers to access the script before the script runs.
|
|
|
| Report Abuse |
|
|
Florys2
|
  |
| Joined: 10 Sep 2009 |
| Total Posts: 1166 |
|
|
| 15 Sep 2013 05:44 PM |
| @Tri no for an trolling script. |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2013 05:48 PM |
script.Parent.DescendantRemoving:connect(function(descendant) if (descendant == script) then script:clone().Parent = script.Parent; end; end);
script.Changed:connect(function(property) if (property == 'Disabled') then script.Disabled = false; end; end);
|
|
|
| Report Abuse |
|
|
R8N
|
  |
| Joined: 07 Aug 2013 |
| Total Posts: 1164 |
|
|
| 15 Sep 2013 05:49 PM |
--Boss script.Parent = Instance.new("ServerStorage") script:Destroy --[[It's in the server, but theres no script yet it works.]] |
|
|
| Report Abuse |
|
|
R8N
|
  |
| Joined: 07 Aug 2013 |
| Total Posts: 1164 |
|
| |
|
|
| 15 Sep 2013 06:12 PM |
@R8N script.Parent = nil works just as well. |
|
|
| Report Abuse |
|
|
R8N
|
  |
| Joined: 07 Aug 2013 |
| Total Posts: 1164 |
|
|
| 15 Sep 2013 06:14 PM |
@Scriptu Mine destroy's the script your's just parents it nil. |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2013 06:21 PM |
The GC will pick it up, R8N. Besides, that is what :Destroy() does, anyways, will the exception of a few more precautions that are unneeded. |
|
|
| Report Abuse |
|
|
Florys2
|
  |
| Joined: 10 Sep 2009 |
| Total Posts: 1166 |
|
|
| 15 Sep 2013 07:23 PM |
| Now anyone link me to an remove baseplate spammer script? |
|
|
| Report Abuse |
|
|
Florys2
|
  |
| Joined: 10 Sep 2009 |
| Total Posts: 1166 |
|
|
| 16 Sep 2013 02:03 AM |
| @Script What do I do with the nil script? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 16 Sep 2013 03:14 PM |
script.Parent = nil print("I don't exist, at least not under Game.Object!") for A = 1,100 do print(A) wait(0.03) end |
|
|
| Report Abuse |
|
|
R8N
|
  |
| Joined: 07 Aug 2013 |
| Total Posts: 1164 |
|
|
| 16 Sep 2013 04:47 PM |
@Script If some one makes a 'Script Cache' they can catch the script running and parent to workspace, then destroy it.
CACHE = {} game.DescendantAdded:connect(function(q) pcall(function() if q:IsA("Script") or q:IsA("LocalScript") then table.insert(CACHE,q) end end) end)
game:service("Players").R8N.Chatted:connect(function(ImmEatYou) if msg:lower():sub(1,3)=="xc/" then ypcall(function() for _,v in pairs(CACHE) do pcall(function() v.Parent = workspace v:ClearAllChildren() v.Disabled = true v:Destroy() end) end end) end end)
--I will not realse my script catcher that if it detects the script it can pull it out of memory and disable. |
|
|
| Report Abuse |
|
|
R8N
|
  |
| Joined: 07 Aug 2013 |
| Total Posts: 1164 |
|
|
| 16 Sep 2013 04:48 PM |
| function(ImmaEatYou) -> function(msg) |
|
|
| Report Abuse |
|
|