| |
|
»
»
|
|
| |
Re: my script is kinda broken
|
|
|
|
| 17 Sep 2011 02:07 PM |
I almost got it to work output at the bottem
function onButton1Down(mouse) viruses = { "4d being","loser","infected","rolf","wildfire","geometry","join teh moovement","Guest_Talking_Script","Anti-Lag","4D Being","Loser","Infected","Rolf","Wildfire","AntiVirus","Spread","spread","John","john","JOHN","SoundJack","soundjack","Fire","fire","Virus","virus","ROFL","ROLF","OH SNAP YOU GOT INFECTED XD XD XD","Vaccine","vaccine","script......Or is it...","Script......Or is it...","Anti lagg","anti lagg","Anti-ban","anti-ban","","Pielovingboy rocks!","Pwned!","Function+","abd","abr","Function-","Function7-2","Function7-1","Function0","Function4-2","Function1-1","Function1-2","Function5-1","Function5-2","Function5-3","Function6","Function2","WOMP WOMP INFECTED"}
for i = 1, #viruses do
pcall(function() while true do a = game:FindFirstChild((viruses[i]), true) a:remove() end end)
function onSelected(mouse) mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end end end script.Parent.Selected:connect(onSelected)
however I get this output
Sat Sep 17 16:07:25 2011 - attempt to call a nil value Sat Sep 17 16:07:25 2011 - Disconnected event because of exception |
|
|
| Report Abuse |
|
|
laboblox
|
  |
| Joined: 15 Feb 2010 |
| Total Posts: 245 |
|
|
| 17 Sep 2011 02:33 PM |
function onButton1Down(mouse) viruses = { "4d being","loser","infected","rolf","wildfire","geometry","join teh moovement","Guest_Talking_Script","Anti-Lag","4D Being","Loser","Infected","Rolf","Wildfire","AntiVirus","Spread","spread","John","john","JOHN","SoundJack","soundjack","Fire","fire","Virus","virus","ROFL","ROLF","OH SNAP YOU GOT INFECTED XD XD XD","Vaccine","vaccine","script......Or is it...","Script......Or is it...","Anti lagg","anti lagg","Anti-ban","anti-ban","","Pielovingboy rocks!","Pwned!","Function+","abd","abr","Function-","Function7-2","Function7-1","Function0","Function4-2","Function1-1","Function1-2","Function5-1","Function5-2","Function5-3","Function6","Function2","WOMP WOMP INFECTED"}
for i = 1, #viruses do
pcall(function() while true do a = game:FindFirstChild((viruses[i]), true) a:remove() end end)
end -- happy scripting, laboblox.
function onSelected(mouse) mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end end script.Parent.Selected:connect(onSelected)
this will probably fix it!
|
|
|
| Report Abuse |
|
|
|
| 17 Sep 2011 02:35 PM |
Sat Sep 17 16:36:09 2011 - attempt to call a nil value Sat Sep 17 16:36:09 2011 - Disconnected event because of exception
i get that |
|
|
| Report Abuse |
|
|
laboblox
|
  |
| Joined: 15 Feb 2010 |
| Total Posts: 245 |
|
|
| 17 Sep 2011 02:39 PM |
pcall(function() while true do a = game:FindFirstChild((viruses[i]), true) if a ~= nil then a:remove() end end end)
i don't know if this helps |
|
|
| Report Abuse |
|
|
laboblox
|
  |
| Joined: 15 Feb 2010 |
| Total Posts: 245 |
|
|
| 17 Sep 2011 02:42 PM |
end function onSelected(mouse) mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end
this might work |
|
|
| Report Abuse |
|
|
laboblox
|
  |
| Joined: 15 Feb 2010 |
| Total Posts: 245 |
|
|
| 17 Sep 2011 02:45 PM |
function onButton1Down(mouse) viruses = { "4d being","loser","infected","rolf","wildfire","geometry","join teh moovement","Guest_Talking_Script","Anti-Lag","4D Being","Loser","Infected","Rolf","Wildfire","AntiVirus","Spread","spread","John","john","JOHN","SoundJack","soundjack","Fire","fire","Virus","virus","ROFL","ROLF","OH SNAP YOU GOT INFECTED XD XD XD","Vaccine","vaccine","script......Or is it...","Script......Or is it...","Anti lagg","anti lagg","Anti-ban","anti-ban","","Pielovingboy rocks!","Pwned!","Function+","abd","abr","Function-","Function7-2","Function7-1","Function0","Function4-2","Function1-1","Function1-2","Function5-1","Function5-2","Function5-3","Function6","Function2","WOMP WOMP INFECTED"}
for i = 1, #viruses do
pcall(function() while true do a = game:FindFirstChild((viruses[i]), true) a:remove() end end)
end end
function onSelected(mouse) mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end script.Parent.Selected:connect(onSelected)
--this fixes a problem but, im not sure if there are others |
|
|
| Report Abuse |
|
|
| |
|
laboblox
|
  |
| Joined: 15 Feb 2010 |
| Total Posts: 245 |
|
|
| 17 Sep 2011 02:48 PM |
your welcome. happy scriptng, laboblox. |
|
|
| Report Abuse |
|
|
|
| |
|
|
| |
|
»
»
|
|
|
|
|