|
| 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 |
|
|
|
| 13 Aug 2015 11:53 PM |
| Recursive functions and LocalPlayer. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 13 Aug 2015 11:56 PM |
| Look into RemoteFunctions and RemoteEvents. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 14 Aug 2015 12:58 AM |
| Please don't control GUIs with a server script. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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 |
|
|