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: How to reset a game/script?

Previous Thread :: Next Thread 
utabon is not online. utabon
Joined: 12 Aug 2009
Total Posts: 900
18 May 2013 09:13 AM
Hey im just wondering in games like racing, once a player reaches the finish line how can I make the first script start again to teleport players and all that.

Dont Understand?

Well you go into a hide and seek game it picks players to by "it" and then picks a map. After doing both it will teleport you to the game until times up or everyone gets tagged. Then once either the time is up or the "It" got everyone it will reset and then go back and repeat the hole process.


-------

I have also tried doing this and stuff:

repeat
script.Starter
Report Abuse
TheLagScript is not online. TheLagScript
Joined: 13 Apr 2012
Total Posts: 2004
18 May 2013 09:25 AM
add
while true do

at top of script

cout << "You Found My Siggy!" << endl;
Report Abuse
utabon is not online. utabon
Joined: 12 Aug 2009
Total Posts: 900
18 May 2013 09:27 AM
While true do is underlined in red and what am I supposed to put in "You found my siggy!", the name of the scirpt?
Report Abuse
justin2865 is not online. justin2865
Joined: 30 Dec 2011
Total Posts: 4677
18 May 2013 09:44 AM
Don't capitalize it.

>while true do
Report Abuse
ForceSky is not online. ForceSky
Joined: 30 Jul 2012
Total Posts: 2379
18 May 2013 09:49 AM
Make a function.

function onfinish(char)
print(char.Name)
end

script.Parent.Touched:connect(function(hit)
if game.Players:GetPlayerFromCharacter(hit.Parent) then
onfinish(hit.Parent)
end
end)
Report Abuse
utabon is not online. utabon
Joined: 12 Aug 2009
Total Posts: 900
18 May 2013 10:04 AM
What do you mean? Why would I make a ontouch thing?
Report Abuse
ForceSky is not online. ForceSky
Joined: 30 Jul 2012
Total Posts: 2379
18 May 2013 10:07 AM
Like for the race thing. That's what you asked. When they touch the finish line it prints the person's name with a function. You could do more with the function, though.
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