|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|