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: Continuous Script???

Previous Thread :: Next Thread 
cracker99 is not online. cracker99
Joined: 04 Jun 2009
Total Posts: 44
16 Feb 2012 07:25 PM
Im looking for a script that always checks the value of a NumberValue.
Like:

Value = game.Workspace.NumberValue
if Value.Value < 1 then
(different part of script)
end

Please Help.
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
16 Feb 2012 07:29 PM
while true do
Value = game.Workspace.NumberValue
if Value.Value < 1 then
(different part of script)
end
end
Report Abuse
cracker99 is not online. cracker99
Joined: 04 Jun 2009
Total Posts: 44
16 Feb 2012 07:33 PM
ahh... I've seen that before... Thank you though.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
16 Feb 2012 07:44 PM
@Unholy

No wait?

† KMXD †
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
16 Feb 2012 07:48 PM
@ Knight
Ohh yes right, i forgot that it will eventaly crash so make sure to put a wait() in there.

Report Abuse
cracker99 is not online. cracker99
Joined: 04 Jun 2009
Total Posts: 44
17 Feb 2012 08:21 PM
Where? Yes it did crash lol
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
17 Feb 2012 09:08 PM
while wait() do
Value = game.Workspace.NumberValue
if Value.Value < 1 then
--(different part of script)
end
end

† KMXD †
Report Abuse
cracker99 is not online. cracker99
Joined: 04 Jun 2009
Total Posts: 44
18 Feb 2012 07:55 AM
Ohhh. I tried to put a wait in the middle of the script and it crashed. Thank you.
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
18 Feb 2012 08:12 AM
[ Content Deleted ]
Report Abuse
LuisPambid is not online. LuisPambid
Joined: 31 Mar 2011
Total Posts: 532
18 Feb 2012 09:43 AM
You can use repeat wait() until
Report Abuse
cracker99 is not online. cracker99
Joined: 04 Jun 2009
Total Posts: 44
25 Mar 2012 01:46 PM
After A while of trying... and a period of quitting... I found out that it isn't exactly what I want. I want something where it would be like (BTW this script is named "Survival")

Value = game.Workspace.NumberValue.Value

(Part of script where the Value is changed to the number of players and all players all teleported to a spot on the map)

game.Lighting.ZombieWave:Clone().Parent=game.Workspace

(Continuously)If Value < 1 then

game.Lighting.RestartScript:Clone().Parent = game.Workspace
script:Remove()

end

(Cant tell how many ends there are... Lol)


The Restart Script would be this:


game.Workspace.Map:Remove()
game.Lighting.Map:Clone().Parent = game.Workspace --So the map resets
game.Lighting.Survival:Clone().Parent = game.Workspace --Script resets

Help Please!
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