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!

Previous Thread :: Next Thread 
ThrashingThunder is not online. ThrashingThunder
Joined: 03 Oct 2011
Total Posts: 2388
03 Mar 2014 10:05 AM
while true do
wait()
for _,v in pairs(game.Players:GetChildren()) do
alive = v:FindFirstChild("Alive")
if alive ~=nil then
if v.Name ~= script.Parent.ChosenValue.Value then
if v.Alive.Value == false then
script.Parent.Game.Value = false
end
end
end
end
end

It works. But, it does the required function when only ONE of the player's alive value is set to false, how do I make it so it only sets the value to true if ALL the players alive value is false?? It's a very simple question.

Answers about the script:
-It's disabled, the game script activates it.
-There are values in all players called by the script.
-I have a script that sets there value to false on death.
Report Abuse
ThrashingThunder is not online. ThrashingThunder
Joined: 03 Oct 2011
Total Posts: 2388
03 Mar 2014 10:08 AM
Early bump. I can tell, My game will never be fixed.
Report Abuse
ThrashingThunder is not online. ThrashingThunder
Joined: 03 Oct 2011
Total Posts: 2388
03 Mar 2014 10:13 AM
Later bump, my game will never be the same.
Report Abuse
ThrashingThunder is not online. ThrashingThunder
Joined: 03 Oct 2011
Total Posts: 2388
03 Mar 2014 10:14 AM
Ok, I'll wait awhile before bumping this again, wait, this was considered a bump.. Sorry!
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
03 Mar 2014 10:15 AM
while true do
wait()
local num
local ply = game.Players:GetPlayers()
for _,v in pairs(ply) do
alive = v:FindFirstChild'Alive'
if alive then
if v.Name ~= script.Parent.ChosenValue.Value then
if v.Alive.Value == false then
num = num + 1
end
else
num = num + 1
end
else
num = num + 1
end
end
if num == #ply then script.Parent.Game.Value = false end
end

Report Abuse
ThrashingThunder is not online. ThrashingThunder
Joined: 03 Oct 2011
Total Posts: 2388
03 Mar 2014 10:16 AM
I'm scared to try this. Thanks!
Report Abuse
ThrashingThunder is not online. ThrashingThunder
Joined: 03 Oct 2011
Total Posts: 2388
03 Mar 2014 10:35 AM
Sigh, it ends the game right when it begins.

I'm done.
Report Abuse
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
03 Mar 2014 10:57 AM
You wait for 08:05 AM to 08:35 and then give up? Wow a whole 30 minutes.

while true do
wait()
local players = game.Players:GetPlayers()
local alive = #players-1

for _,v in pairs(players:GetPlayers()) do
alive = v:FindFirstChild("Alive")
if alive ~= nil and v.Name ~= script.Parent.ChosenValue.Value and v.Alive.Value == false then
alive = alive-1
end
end

if alive <= 0 then
script.Parent.Game.Value = false
end
end
Report Abuse
Voidition is not online. Voidition
Joined: 14 Jul 2012
Total Posts: 1849
03 Mar 2014 10:58 AM
[ Content Deleted ]
Report Abuse
ThrashingThunder is not online. ThrashingThunder
Joined: 03 Oct 2011
Total Posts: 2388
03 Mar 2014 11:13 AM
Thank you Free, as for you Void,
Try bumping your post. Going on other's problems and throwing in that you need his help, come on. Be reasonable.
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