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 » Game Design
Home Search
 

Re: help with a script

Previous Thread :: Next Thread 
Knexer is not online. Knexer
Joined: 03 May 2009
Total Posts: 13851
28 Dec 2016 06:10 AM
The following is an excerpt from a script that's giving me some trouble. I want it to run the endgame function whenever the game status changes to intermission (resp. "int"). It should remove the planet from workspace and then kill any of the remaining surviving players. However, it does neither. The script which is running the schedule isn't giving me any trouble, nor is the first half of this script. It seems that the error is probably in the endgame function somewhere but I can't find it and output is no help. Any insight would be greatly appreciated.

-----

function endgame()
wait(0.5)
gameplanet.Parent = nil
local chars = game.Players:GetChildren()
for i=1, #chars do
if chars[i].isalive.Value == true then
chars[i].Character.Humanoid.Health = 0
else
end
end
end

function shift()
chooseplanet()
if status.Value == "game" then
moveplayers()
else endgame()
end
end

wait(0.5)
status.Changed:connect(shift)
Report Abuse
messi2alberto is not online. messi2alberto
Joined: 02 Dec 2016
Total Posts: 1
01 May 2017 11:11 AM
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkllllllllllllllllllllllllllllldjjjjjjjjjjjjjjsioefheioiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiieeeeeeeeeeeeeeeeeeeee
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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