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

HoloGui FilteringEnabled not working?

Asked by
IcyEvil 260 Moderation Voter
7 years ago

This is a script within a folder in workspace

game.ReplicatedStorage.HoloGuiEvent.OnServerEvent:connect(function(player)
    x = game.Workspace["HoloGui Giver"].ScreenGui:Clone()
    x.Parent = player.PlayerGui

end)

this is a local script within a brick called 'HoloGui Giver'

script.Parent.Touched:connect(function(hit)

game.ReplicatedStorage.HoloGuiEvent:FireServer()
end)

Pictures for reference.

1 answer

Log in to vote
1
Answered by
VoltCode 101
7 years ago
Edited 7 years ago

'connect' is deprecated.

I've run into this bug plenty of times myself when using FilteringEnabled.

What you need to do is manually create the GUI yourself in the script, so for example once the remote event is triggered then you start with:

local gui = Instance.new("ScreenGui", parenthere)

-- repeat rest for all children & children of children
0
I don't think the Connect event is deprecated... PyccknnXakep 1225 — 7y
0
They consider connect with a lowercase first letter to be deprecated. Connect still works just fine. RockerCaleb1234 282 — 7y
0
So is this what is wrong with my code, or am I in need of something else lol? IcyEvil 260 — 7y
0
^ To be honest when this happens to me this is what I do, because this is the only solution I know of. VoltCode 101 — 7y
Ad

Answer this question