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: It keeps saying my ScreenGui isn't found

Previous Thread :: Next Thread 
Neoryu is not online. 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
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
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 is not online. Neoryu
Joined: 04 Mar 2012
Total Posts: 42
28 Mar 2016 07:51 AM
Explain more please?
Report Abuse
Neoryu is not online. 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
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
28 Mar 2016 07:53 AM
server scripts cant access playergui

it will never find it with FE
Report Abuse
Neoryu is not online. 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 is not online. Neoryu
Joined: 04 Mar 2012
Total Posts: 42
28 Mar 2016 07:55 AM
I'm just starting out with Events btw
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
28 Mar 2016 07:55 AM
yeah
Report Abuse
Neoryu is not online. Neoryu
Joined: 04 Mar 2012
Total Posts: 42
28 Mar 2016 07:58 AM
Could I use a remote function instead?
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
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 is not online. Neoryu
Joined: 04 Mar 2012
Total Posts: 42
28 Mar 2016 08:13 AM
My first time using Events
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