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: my script is kinda broken

Previous Thread :: Next Thread 
killerbolx is not online. killerbolx
Joined: 10 Sep 2009
Total Posts: 6135
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 is not online. 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
killerbolx is not online. killerbolx
Joined: 10 Sep 2009
Total Posts: 6135
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 is not online. 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 is not online. 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 is not online. 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
killerbolx is not online. killerbolx
Joined: 10 Sep 2009
Total Posts: 6135
17 Sep 2011 02:47 PM
it works thanks
Report Abuse
laboblox is not online. laboblox
Joined: 15 Feb 2010
Total Posts: 245
17 Sep 2011 02:48 PM
your welcome.
happy scriptng, laboblox.
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