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 |
|
|
|
| 18 May 2013 09:25 AM |
add while true do
at top of script
cout << "You Found My Siggy!" << endl; |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 18 May 2013 09:44 AM |
Don't capitalize it.
>while true do |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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 |
|
|