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: help with script...

Previous Thread :: Next Thread 
lukaguy98 is not online. lukaguy98
Joined: 24 Jul 2011
Total Posts: 670
23 Mar 2013 03:37 PM
white wait(60) do
character.Breakjoints()
end

How do i do it so that every 60 seconds all of the players die? the script above me doesn't work :/
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
23 Mar 2013 03:48 PM
while (2+2 == 4) do
wait (60)
p = game.Players:GetChildren()

for i = 1,#p do
p[i].Character.Humanoid.Health = 0
end
end
end

Not sure if it will work.
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
23 Mar 2013 03:53 PM
while 99 == 99 do
wait(60)
for _,n in next,Workspace:GetChildren() do
if Game.Players:GetPlayerFromCharcter(n) then
n:BreakJoints()
end
end
end
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
23 Mar 2013 03:55 PM
while (2+2 == 4) do



I like that better :3
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
23 Mar 2013 03:58 PM
I win :P

while 3^3==3^2*3 do
wait()
end
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
23 Mar 2013 04:00 PM
Okay....

http://www.roblox.com/Okay-face-item?id=61860021

Wait can you divide with lua?
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
23 Mar 2013 04:01 PM
Yes...
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
23 Mar 2013 04:02 PM
Example please....
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
23 Mar 2013 04:03 PM
while 2*2*9 == 4/2*2*9 do
print("SPAM")
end
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
23 Mar 2013 04:03 PM
print(4/2)
>2
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
23 Mar 2013 04:04 PM
Lol divide 0 by 0... :D
Report Abuse
lukaguy98 is not online. lukaguy98
Joined: 24 Jul 2011
Total Posts: 670
23 Mar 2013 04:05 PM
you mean while true do.
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
23 Mar 2013 04:08 PM
This will still work:

while (2+2 == 4) do

Because 2+2 is always going to equal 4.
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
23 Mar 2013 04:11 PM
while math.huge > -math.huge do
wait()
print("Yesh")
end
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
23 Mar 2013 04:12 PM
Wouldn't that lag?
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
23 Mar 2013 04:12 PM
while math.pi:sub(1,4) == 3.14 do
wait()
print("woah")
end
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
23 Mar 2013 04:13 PM
I LOVE PI!
Report Abuse
jagex100 is not online. jagex100
Joined: 21 Oct 2009
Total Posts: 8
23 Mar 2013 04:23 PM
while wait(60) do --[[This makes a loop that well wait 60 seconds]]
print("Starting") --[[This well have it print Starting every 60 seconds]]
players=game.Players:GetChildren() --[[This gets everything inside game.Players]]
for a =1,#players do --[[For how many players there are do]]
local human=players[a].Character:FindFirstChild("Humanoid") --[[This gets the players humanoid]]
if human~=nil then --[[This checks if thier humanoid exist]]
human.Health=0 --[[This makes thier health zero]]
end--[[The ends just every if statement and the while statement I called]]
end
end

--[[
Instead of getting the players humanoid we could have said players[a].Character:BreakJoints() and that would have killed the player also
]]
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