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
 

Display a playername in a gui.

Previous Thread :: Next Thread 
testdummy5000 is not online. testdummy5000
Joined: 04 Jun 2010
Total Posts: 818
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
BloxEclipse is not online. BloxEclipse
Joined: 18 Mar 2011
Total Posts: 368
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 is not online. 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
testdummy5000 is not online. testdummy5000
Joined: 04 Jun 2010
Total Posts: 818
16 Jul 2014 08:52 PM
Ok. Thnaks.
Report Abuse
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
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
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