|
| 16 Jul 2014 08:11 PM |
| This is an example. I just want to know this for future reference. Say I was making a racing game, and wanted to display a player's name that came in 1st 2nd and 3rd on guis. What do I do that can make this possible? Please reply, thank you. |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2014 08:19 PM |
You aren't providing anything for us. However, I suppose you could do some onTouch function near the end, place that player's name in a table, and display the top 3 to everyone at the end of the race. You aren't providing any source for me to go into great detail. |
|
|
| Report Abuse |
|
|
xXLiLxJXx
|
  |
| Joined: 15 Mar 2012 |
| Total Posts: 687 |
|
|
| 16 Jul 2014 08:30 PM |
Make a string value for the winners name. One the player wins, make that name go into the value of string value.
Then in a gui, you would make a script, have it set for the gui text to be the stringvalues value. |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Jul 2014 09:21 PM |
ex:
local winners={}
script.Parent.Touched:connect(function(hit) local player=game:GetService('Players'):GetPlayerFromCharacter(hit.Parent) if player and #winners < 3 then winners[#winners+1]=player end end)
It stores the first 3 that touch it. You can add on to it to create some magic with GUIs and whatever. |
|
|
| Report Abuse |
|
|