rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
|
| 04 Aug 2017 01:09 PM |
| The title, how can I change the text of a textbox in playergui with FE? |
|
|
| Report Abuse |
|
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
| |
|
Vultorz
|
  |
| Joined: 02 Mar 2015 |
| Total Posts: 2985 |
|
|
| 04 Aug 2017 01:42 PM |
If you're using a server script, fire all clients with a remote event.
In the local script, check for a client event on the RE.
If it was fired, make the localscript change the playergui to your wish. |
|
|
| Report Abuse |
|
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
|
| 04 Aug 2017 01:49 PM |
fire all clients with a remote event? What u mean with this any example because I'm struggling at it? |
|
|
| Report Abuse |
|
|
Vultorz
|
  |
| Joined: 02 Mar 2015 |
| Total Posts: 2985 |
|
|
| 04 Aug 2017 01:53 PM |
put a remote event in replicated storage
server script -
local rep = game:GetService('ReplicatedStorage') local revent = rep:WaitForChild('name_of_event')
revent:Fire All Clients() -- remove spaces, it gets tagged for some reason
local script - (put inside of textbox)
local rep = game:GetService('ReplicatedStorage') local revent = rep:WaitForChild('name_of_event')
revent.OnClientEvent:Connect(function() script.Parent.Text = 'oh wow thanks vult' end)
fin |
|
|
| Report Abuse |
|
|
Vultorz
|
  |
| Joined: 02 Mar 2015 |
| Total Posts: 2985 |
|
|
| 04 Aug 2017 01:55 PM |
im just confused on why you couldn't just use a localscript inside of the textbox
it would still work with no remote events needed |
|
|
| Report Abuse |
|
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
|
| 04 Aug 2017 01:56 PM |
| But the problem is that is a textbox not a textlabel so players can input the text. I want to detect the text input of a PlayerGui textbox not a textlabel. |
|
|
| Report Abuse |
|
|
Vultorz
|
  |
| Joined: 02 Mar 2015 |
| Total Posts: 2985 |
|
|
| 04 Aug 2017 01:57 PM |
i just thought you wanted to change the text lmao
that requires other things i m not willing to do cuz i suck at string manipulation |
|
|
| Report Abuse |
|
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
| |
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
| |
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
| |
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
| |
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
| |
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
| |
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
| |
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
|
| 04 Aug 2017 05:24 PM |
| Keep bumping to the end T_T |
|
|
| Report Abuse |
|
|
rubene45
|
  |
| Joined: 08 May 2012 |
| Total Posts: 333 |
|
| |
|