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 any way to remove a nil script?

Previous Thread :: Next Thread 
AntiProton is not online. AntiProton
Joined: 16 Jan 2011
Total Posts: 87
17 Jan 2012 05:48 PM
There are ways that I know of, such as setting variables for example game.Workspace.Name to something else to break it. Since I get annoyed at the amount of people using Anti-Ban scripts.

Although I do not know how to break a script using GetService or using Oysi's OLD method


--Oysi Old method
local Settings={["Un_Removable"]= "On"}
local function mFloor(x) return x - x % 1 end
local Un_Removable = tostring(Settings["Un_Removable"]):lower() == "on"
if Un_Removable then
Game.Workspace.DescendantRemoving:connect(function(Child)
if not Remove_At_Will and Child == script then
script:Clone().Parent = Game.Workspace
end
end)
end
-- blargh
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
17 Jan 2012 06:08 PM
Two ideas:
a) Go to SH
b) Use Garbage Collector.
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
17 Jan 2012 06:09 PM
Ok, so let me interpret your problem:

You want to stop a script that you have no reference to and which has no parent.

Well, here is my solution to that problem:

game:GetService('ScriptContext').ScriptsDisabled = true

There, problem fixed. :)
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
17 Jan 2012 06:12 PM
^ That
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
17 Jan 2012 06:56 PM
That property has no effect on running scripts.
Report Abuse
AntiProton is not online. AntiProton
Joined: 16 Jan 2011
Total Posts: 87
17 Jan 2012 09:28 PM
@MeBilly

Please dont even comment on this thread, you dont know what your talking about.

Also that property wouldn't work on running scripts, like what popinman322 said.
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
17 Jan 2012 09:41 PM
"you dont know what your talking about."

... because I'm the one who asked... and btw, this belongs in SH, not Scripters.
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
17 Jan 2012 09:45 PM
You can't...simply because it doesn't make sense to remove something that's already been removed.

~Would you like some butter with that latetoast?
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
17 Jan 2012 09:49 PM
You could, however, have a script that indexes all scripts in the game in a table, something like this:

scripts = {}

function addScript(item)
if (item.ClassName == "Script") then
table.insert(scripts, item)
end
end

game.DescendantAdded:connect(addScript)

Then, find the script you want to "remove" in the table, and disable it.

~Would you like some butter with that latetoast?
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