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: This won't work

Previous Thread :: Next Thread 
TacoConsumer is not online. TacoConsumer
Joined: 24 Apr 2010
Total Posts: 1563
28 Aug 2011 01:06 AM
It's supposed to kill everyone. It used to work but now it doesn't.

function onClicked()
game.Workspace:BreakJoints()
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

Also, because I don't know much about scripting is there a way to make it kill everyone but me? If not, no big deal.
Report Abuse
Vivaz is not online. Vivaz
Joined: 26 Aug 2011
Total Posts: 178
28 Aug 2011 01:10 AM
Yeah,now BreakJoints on workspace doesn't work :C
Report Abuse
TacoConsumer is not online. TacoConsumer
Joined: 24 Apr 2010
Total Posts: 1563
28 Aug 2011 01:10 AM
Oh, well that kind of sucks. ROBLOX and their silly updates. What should I replacce it with?
Report Abuse
1MangoMan0 is not online. 1MangoMan0
Joined: 28 Sep 2010
Total Posts: 1596
28 Aug 2011 01:20 AM
function onClicked()
list = game.Workspace:GetChildren()
for i = 1,#list do
if list[i].ClassName == "Model" and list[i].Name ~= TacoConsumer then
h = list[i]:findFirstChild("Humanoid")
if h ~= nil then
h.Health = 0
end
end
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)


This should work, I'm not to great of a scripter myself but I hope this helps :)
Report Abuse
TacoConsumer is not online. TacoConsumer
Joined: 24 Apr 2010
Total Posts: 1563
28 Aug 2011 01:24 AM
Thankyou so much!
Report Abuse
bikerking300 is not online. bikerking300
Joined: 31 Mar 2010
Total Posts: 1034
28 Aug 2011 01:54 AM
Ihr herzlich willkommen!
Report Abuse
verpy12 is not online. verpy12
Joined: 13 May 2010
Total Posts: 1737
28 Aug 2011 04:28 AM
Thanks for the script, I also needed it
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