Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why doesn't player GUI enable when game is published?

Asked by
bnxDJ 57
6 years ago
Edited 6 years ago

I have been trying to fix this problem all day now!

I tried disabling filtering and it didn't work! I tried changing the player joined script and it didn't work as well!

This is the script

game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function()
local gui = player:WaitForChild('PlayerGui',1)
 local open = gui:WaitForChild("open",1)
open.Enabled = true
        end
    end)
end)

no matter what I try nothing works.

What I am trying to do: I am trying to make a script that enabled the "open" gui when the player joins.

0
Is it a LocalScript? And what is "player" defined as? Post the full script. User#19524 175 — 6y
0
ok posted the whole script bnxDJ 57 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

PlayerGui shouldn't be accessed from the server. Experimental Mode was removed, So filtering enabled is a forced requirement. If you're looking to modify the PlayerGui, I recommend using RemoteEvents to do so. This will let the server tell the Client what to do and vice versa.

Ad

Answer this question