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: PLEASEEEE help me!

Previous Thread :: Next Thread 
Voidition is not online. Voidition
Joined: 14 Jul 2012
Total Posts: 1849
23 Apr 2014 10:33 AM
No output, no nothing, doesn't work, please tell me what I'm doing wrong!

local aliveplayers = game.Players:GetPlayers()
local alive = game.Workspace:FindFirstChild("AlivePlayers")
local beast = game.Workspace:FindFirstChild("AliveBeast")
alive.Value = #aliveplayers
beast.Value = 1

game.Players.PlayerRemoving:connect(function(player)
if player.Backpack.Alive.Value == true then
alive.Value = alive.Value - 1
elseif player.Backpack.Beast.Value == true then
beast.Value = beast.Value - 1
end
end)

game:GetService('Players').PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").Died:connect(function()
if player.Backpack.Alive.Value == true and player.Backpack.Beast.Value == false then
alive.Value = alive.Value - 1
elseif player.Backpack.Alive.Value == false and player.Backpack.Beast.Value == true then
beast.Value = beast.Value - 1
end
end)
end)
end)

if alive.Value <= 1 then
_G.notAlive()
end
if beast.Value < 1 then
_G.beastLeft()
end
Report Abuse
Voidition is not online. Voidition
Joined: 14 Jul 2012
Total Posts: 1849
23 Apr 2014 10:44 AM
bump, PLEASE
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
23 Apr 2014 12:50 PM
No helping for copyers. I dont think you will get any answers.
Report Abuse
Voidition is not online. Voidition
Joined: 14 Jul 2012
Total Posts: 1849
23 Apr 2014 12:52 PM
wat, i didnt copy anything
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
23 Apr 2014 12:53 PM
First off, you need to say what it does and what it's supposed to do. Give as much information as possible. Secondly, that's not a very good way to keep track of things. One mistake and you get skewed forever. Instead of keeping track of alive and beast like that, you should do a check per frame or so.
Report Abuse
Voidition is not online. Voidition
Joined: 14 Jul 2012
Total Posts: 1849
23 Apr 2014 12:56 PM
basically this script just runs a function when a player dies, if the value Alive in his backpack is set to true the value AlivePlayers get's decreased by 1, same for the Beast value, if the Alive value is lower or equal to 1 then it runs a global function, same for the beast value
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
23 Apr 2014 12:58 PM
I thought you were kinda copying Darkness (now Darkness 2). But i'll keep an eye on you.
Report Abuse
Voidition is not online. Voidition
Joined: 14 Jul 2012
Total Posts: 1849
23 Apr 2014 01:06 PM
first of all, go play my game the beast before you tell me im copying something
Report Abuse
Voidition is not online. Voidition
Joined: 14 Jul 2012
Total Posts: 1849
23 Apr 2014 01:45 PM
bump
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