This works find in studio but doesnt in game. I jsut got into filtering enabled and im confused, I followed the wiki and follow youtube videos but it doesnt make sense as to why this isnt working.
This is the script I put in start character (its a local script) ~~~~~~~~~~~~~~~~~
workspace.button5.ClickDetector.MouseClick:connect(function() local ReplicatedStorage = game:WaitForChild("ReplicatedStorage")
ReplicatedStorage.Open:invokeServer()
end)
This is the second script thats in server script service ~~~~~~~~~~~~~~~~~
ReplicatedStorage = game:WaitForChild("ReplicatedStorage")
local function gui(player)
player.PlayerGui.ok.Frame.Visible = true
end
ReplicatedStorage.Open.OnServerInvoke = gui
Now in studio it works, but in game it doesnt, It says that it isnt a member of the player Gui, I even tried printing the gui in game using the devleoper tab and it wouldnt print it. When I did a WaitForChild() command for the gui, it said "possible for infinite" which is saying it may go on forever waiting, which it does because it doesnt work.

2 comments
No, don't handle GUI coding on the server.
What do you mean?