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: How do we make a GUI open when we click on a part?

Previous Thread :: Next Thread 
Choclover01 is not online. Choclover01
Joined: 18 Nov 2016
Total Posts: 95
01 Sep 2017 03:30 PM
Hello!

I am trying to make an In Flight Entertainment screen. However, I am finished with the GUI but I am not sure how we can make a GUI open when clicking on the part. The part includes the script, a click detector and a decal and I also have a StarterGUI with a ScreenGUI that includes an image label.


If you can provide a script, I would find it very useful!

Thanks,
Choclover01
Report Abuse
RonDeRainyDays is not online. RonDeRainyDays
Joined: 25 Apr 2014
Total Posts: 377
01 Sep 2017 03:43 PM
needs a remote event named guiEvent in replicated storae

--server script in part
local cd = part.ClickDetector
cd.MouseClick:connect(function(player)
game.ReplicatedStorage.guiEvent:FireClient(player)
end)

--local script
ame.ReplicatedStorage.guiEvent.OnClientEvent:connect(funciton()
game.Players.LocalPlayer.PlayerGui.ScreenGui.Enabled = true
end)
Report Abuse
Choclover01 is not online. Choclover01
Joined: 18 Nov 2016
Total Posts: 95
02 Sep 2017 02:00 AM
Hello! It still seems it is not working for me. I placed the script in the part and the local script in the remote event! Have I done anything wrong?
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