I have a part that fires a Remote Event when touched:

i want enable gui after touching part.
Local script:


I have a part that fires a Remote Event when touched:

i want enable gui after touching part.
Local script:


Btw for future reference you should try using code blocks so people can reference your code
add three of these around your code:
(Backticks)
like this:
âââ
This is some code
âââ
(yes Iâm using single quotes so you can see what to do)
This is some code
Or you can just click the gear icon (if youâre on mobile) and click the Preformatted Text option (make sure youâre on a new line or itâll only add two backticks)
If youâre on PC, just click the icon that looks like this
AKA a closing HTML tag
Anyways to the main stuff. Youâre enabling the GUI in starterGui which if you didnât know hereâs cloned to every player. So it wonât change anything.
You need to change the gui in the playerâs unique PlayerGui like this
-- THIS IS A EXAMPLE
local Player = game.Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
PlayerGui.ScreenGui.Enabled = true
Sorry for writing too much lol
thanks for feedback, i really appreciate it, but it gives an error saying: attempt to index nil with âWaitForChildâ
nvm i managed to fix it. Thanks again ![]()
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.