Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Plugin Not Working?

Asked by 9 years ago

Anyone know why this won't work?

local PluginManagerObject = PluginManager()
local Plugin = PluginManagerObject:CreatePlugin()
local Toolbar = Plugin:CreateToolbar("Nascars Plugins")
local Button = Toolbar:CreateButton("Virus Remover","Deletes virus's from your game.","http://www.roblox.com/asset/?id=188440505")
Button.Click:connect(function()

ScanAt = game.Workspace 

Objects = {} 

local m = Instance.new("Hint") 
m.Parent = script 
m.Text = "DETECTING "..ScanAt.Name.." Please wait ." 
wait(1) 
m.Text = "DETECTING "..ScanAt.Name.." Please wait .." 
wait(1) 
m.Text = "DETECTING "..ScanAt.Name.." Please wait ..." 
wait(1) 

function geth(ob) 
for _,v in pairs (ob:GetChildren()) do 
table.insert(Objects,v) 
geth(v) 
end 
end 
geth(ScanAt) 
m.Text = "Number of Objects in "..ScanAt.Name..": "..#Objects 
wait(1) 
m.Text = "Loading virus remover [l  ]" 
wait(1) 
m.Text = "Loading virus remover [ll ]" 
wait(1) 
m.Text = "Loading virus remover [lll]"
wait(2)

Virus = 0 
Viruses = {} 

theKnown = {"dåååååååååååååång.........you got owned...", "Rofl","**virusmaster***","Vivurursdd","Vaccine","Guest_Talking_Script", "micolord", "ThisScriptIsAJumpStartToAHeålthyLifestyle", "4D Being"}

function scan(objection) 
for _,v in pairs (theKnown) do 
if string.lower(v) == string.lower(objection.Name) then 
Virus = Virus + 1 
table.insert(Viruses,objection) 
end 
end 
end 
for nou = 1,#Objects do 
scan(Objects[nou]) 
m.Text = "Scanning Object: "..Objects[nou].Name .. " Number "..nou.." of "..#Objects .. " | Viruses Detected: "..Virus 
wait(.0001) 
end 

wait(3) 
for _,v in pairs (Viruses) do 
v:Remove() 
end 
m.Text = "Scan Completed, Any viruses that were found were removed." 
wait(1.5) 
m:Remove()


end)

1 answer

Log in to vote
0
Answered by 9 years ago

On line 4, you said "deletes virus's". Change it to "deletes viruses". '' Can also be used for strings; therefore glitching your script thinking that there are 4 strings, not 3.

0
Still does not work. InfinitivePixelsJr 542 — 9y
0
I also think that you should change the parent of the hint/message to workspace. TroytheDestroyer 75 — 9y
0
Thank you, It work's now. InfinitivePixelsJr 542 — 9y
0
Your welcome! Try not to expose plugin codes much or other people will copy your plugin. TroytheDestroyer 75 — 9y
Ad

Answer this question