Neoryu
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 42 |
|
|
| 28 Mar 2016 07:49 AM |
Okay so I'm scripting in a FE game. The main gui's name is "GameplayGui" and in it is a button. So when I click this button, it keeps saying "GameplayGui" is not in PlayerGui.
--SERVER SCRIPT events.Mode1.OnServerEvent:connect(function(plr) p = plr --p.PlayerGui.GameplayGui.Click:Play() s = p.PlayerGui.GameplayGui.Menu -- ERROR HERE --MORE CODE end)
--LOCAL SCRIPT s.Menu.Mode1.MouseButton1Click:connect(function() game.ReplicatedStorage.Events.Mode1:FireServer(game.Players.LocalPlayer) end) |
|
|
| Report Abuse |
|
|
|
| 28 Mar 2016 07:50 AM |
the server cant access the playergui in FE
you need to use an event back to the client |
|
|
| Report Abuse |
|
|
Neoryu
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 42 |
|
| |
|
Neoryu
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 42 |
|
|
| 28 Mar 2016 07:52 AM |
| Should I add another argument that defines the GameplayGui? |
|
|
| Report Abuse |
|
|
|
| 28 Mar 2016 07:53 AM |
server scripts cant access playergui
it will never find it with FE |
|
|
| Report Abuse |
|
|
Neoryu
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 42 |
|
|
| 28 Mar 2016 07:54 AM |
| So I should do a Client Event then? |
|
|
| Report Abuse |
|
|
Neoryu
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 42 |
|
|
| 28 Mar 2016 07:55 AM |
| I'm just starting out with Events btw |
|
|
| Report Abuse |
|
|
| |
|
Neoryu
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 42 |
|
|
| 28 Mar 2016 07:58 AM |
| Could I use a remote function instead? |
|
|
| Report Abuse |
|
|
|
| 28 Mar 2016 08:11 AM |
LOOOOOOOOOOOOOOOOOOOOOOOOL WHY R U EDITING GUI W SERVER ANYWAYS? JUST DONT USE REMOTEEVENTS AND BAM U WIN
#code R+ | local RAP = "R$375,009"; local robux = "R$2,033" |
|
|
| Report Abuse |
|
|
Neoryu
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 42 |
|
|
| 28 Mar 2016 08:13 AM |
| My first time using Events |
|
|
| Report Abuse |
|
|