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
 

How can I do this? SurfaceGui...

Previous Thread :: Next Thread 
DracoTrainingMaster is not online. DracoTrainingMaster
Top 100 Poster
Joined: 14 Oct 2006
Total Posts: 524
12 Sep 2014 09:44 AM
With a SurfaceGui I have this in a TextButton

script.Parent.MouseButton1Down:connect(function()
script.Parent.Text = "User: "
end)

I want it to say User: "Who ever clicks it."
Report Abuse
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
12 Sep 2014 09:48 AM
u cant know who clicked it exept if u put this script inside of the player and do like

--local script in playergui

game.Workspace.Part.SurfaceGui.TextButton.MouseButton1Click:connect(function()
game.Workspace.Part.SurfaceGui.TextButton.Text = "User: "..game.Players.LocalPlayer.Name
end)


ugly script xd u have to do some shortcuts lol
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
12 Sep 2014 09:52 AM
have the gui in startergui and set the adornee to the part

guise i have a siggy
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
12 Sep 2014 12:36 PM
What? How the heck this guy is a top 100 poster? HOW?!
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
12 Sep 2014 12:37 PM
because he was one of the first 100 posters maybe?
"Joined: 14 Oct 2006"
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