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 would be nice, I made this easy to fix.

Previous Thread :: Next Thread 
blocker192 is not online. blocker192
Joined: 13 Jan 2010
Total Posts: 496
18 Apr 2013 05:40 PM

I'm trying to make a game where when you enter, you are assigned a room number. Of course, I don't want people sharing the numbers. What I've got below this is a simplified version of how to find the player a room number, I just don't know how to make it repeat. Note stage 1:


roomnumber = 1
--Stage 1
if game.Workspace:findFirstChild("Room"..roomnumber.."").Value == "V" then
print("Room"..roomnumber.."is vacant.")

else
roomnumber = roomnumber + 1
--NEEDS TO RETURN TO STAGE 1 SOMEHOW.

end
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
18 Apr 2013 05:41 PM
roomnumber = 1
while game.Workspace:findFirstChild("Room"..roomnumber.."").Value ~= "V" do
wait()
roomnumber = roomnumber + 1
end
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