Roy_Mer
|
  |
| Joined: 13 Jul 2014 |
| Total Posts: 396 |
|
|
| 05 Jun 2016 01:24 PM |
So this is just the first part of my FE and only this part is firing print("FE: JobId fired!"), why would the rest of the code not be working?
function FE.JobId.OnServerInvoke(player) print("FE: JobId fired!") local ScreenGui = player.PlayerGui:WaitForChild("ScreenGui") print("didn't work") local frame = ScreenGui:WaitForChild("Friends"):WaitForChild("ScrollingFrame") print("didn't work")
|
|
|
| Report Abuse |
|
|
|
| 05 Jun 2016 01:25 PM |
| If the rest of the code isn't working that means it's waiting for ScreenGui forever. Check if it's actually being added. |
|
|
| Report Abuse |
|
|
eRanged
|
  |
| Joined: 15 Jun 2013 |
| Total Posts: 9746 |
|
|
| 05 Jun 2016 01:29 PM |
If you really have FilterEnabled on then Server can't access assets PlayerGui
|
|
|
| Report Abuse |
|
|
eRanged
|
  |
| Joined: 15 Jun 2013 |
| Total Posts: 9746 |
|
| |
|
Roy_Mer
|
  |
| Joined: 13 Jul 2014 |
| Total Posts: 396 |
|
|
| 05 Jun 2016 01:30 PM |
It's definitely there... And although that line is breaking my code, no output error is being given.
|
|
|
| Report Abuse |
|
|
Roy_Mer
|
  |
| Joined: 13 Jul 2014 |
| Total Posts: 396 |
|
| |
|
eRanged
|
  |
| Joined: 15 Jun 2013 |
| Total Posts: 9746 |
|
|
| 05 Jun 2016 07:22 PM |
Nope, have to send the Data to the server with a Remote
like Remote:InvokeServer(ScreenGui.Name)
|
|
|
| Report Abuse |
|
|
Zawie
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 6338 |
|
|
| 05 Jun 2016 07:24 PM |
why on earth would you need to change client's UIs through a serverscript? don't do that. handle all ui stuff via localscripts |
|
|
| Report Abuse |
|
|
|
| 06 Jun 2016 04:39 AM |
You're trying to manipulate GUIs on the server. GUIs are local objects, so you can't do that.
You should be handling all interface manipulation locally anyway. The fact you can even access GUIs from the server with filtering off is hacky in itself. |
|
|
| Report Abuse |
|
|
|
| 06 Jun 2016 06:16 AM |
^ It's beyond hacky really. |
|
|
| Report Abuse |
|
|