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 » Scripters
Home Search
 

Re: Finding a player through a GUI

Previous Thread :: Next Thread 
SuperSoldier110 is not online. SuperSoldier110
Joined: 03 Jul 2011
Total Posts: 131
13 Aug 2015 11:51 PM
When you click a TextButton, it'll find your name and print it onto another GUI. When you click again, it will move the first one to the second line and the second one will be on the first line, and so on.

I don't know how to do this


~We did not choose life, life is full of choice. -sWooZie
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
13 Aug 2015 11:53 PM
Recursive functions and LocalPlayer.
Report Abuse
SuperSoldier110 is not online. SuperSoldier110
Joined: 03 Jul 2011
Total Posts: 131
13 Aug 2015 11:54 PM
I don't really want it to be a LocalScript because I want it to be able to be seen by everyone


~We did not choose life, life is full of choice. -sWooZie
Report Abuse
BobserLuck is not online. BobserLuck
Joined: 09 Mar 2012
Total Posts: 653
13 Aug 2015 11:56 PM
Look into RemoteFunctions and RemoteEvents.
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
13 Aug 2015 11:58 PM
You can use a LocalScript to effect everbody's Gui.

I just meant it would be easier to get the Clicker's name through a LocalScript rather than using script.Parent 15 times.
Report Abuse
SuperSoldier110 is not online. SuperSoldier110
Joined: 03 Jul 2011
Total Posts: 131
14 Aug 2015 12:02 AM
RemoveFunctions and RemoveEvents seem too complex for me to understand right now. I just want to find the player who clicked the gui and place it somewhere


~We did not choose life, life is full of choice. -sWooZie
Report Abuse
SuperSoldier110 is not online. SuperSoldier110
Joined: 03 Jul 2011
Total Posts: 131
14 Aug 2015 12:03 AM
@system how would I do that? I'm still not that skilled into it


~We did not choose life, life is full of choice. -sWooZie
Report Abuse
BobserLuck is not online. BobserLuck
Joined: 09 Mar 2012
Total Posts: 653
14 Aug 2015 12:14 AM
Oh, well, if your FE is not enabled then you can use a local script:
--This example would be in a Textbutton
--You also need a string value in Workspace called "PEOPLE"

player=game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function()
game.Workspace.PEOPLE.Value=player.Name
end)

game.Workspace.PEOPLE.Changed:connect(function()
script.Parent.Text=game.Workspace.PEOPLE.Value
end)

This will work if FE is not enabled but if it is enabled or you want it to be... You will have to learn how to use RemoteEvents and RemoteFunctions.
Report Abuse
LongKillKreations is not online. LongKillKreations
Joined: 14 Feb 2014
Total Posts: 4502
14 Aug 2015 12:58 AM
Please don't control GUIs with a server script.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
14 Aug 2015 01:05 AM
something like that i guess

for i,v in next, textbuttons:GetChildren()
for i,p in next, game.Players:GetPlayers() do
v.MouseButton1Click:connect(function()
v[i].Text = p[i].Name
end)
end
end



"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
Iterum is not online. Iterum
Joined: 30 Jan 2009
Total Posts: 1982
14 Aug 2015 01:21 AM
The actual solution:

Never use a server script for GUIs. Ever.


-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts
Report Abuse
LongKillKreations is not online. LongKillKreations
Joined: 14 Feb 2014
Total Posts: 4502
14 Aug 2015 01:22 AM
^

Another good thing of applying FE to your games as fast as possible is that you can't even do stupid things like that lol.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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