Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

HoloGui FilteringEnabled not working?

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

'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

5 comments

0

I don't think the Connect event is deprecated...

0

They consider connect with a lowercase first letter to be deprecated. Connect still works just fine.

0

So is this what is wrong with my code, or am I in need of something else lol?

0

^ To be honest when this happens to me this is what I do, because this is the only solution I know of.

This discussion is preserved as it was. New answers, comments, and votes are closed.