I created a script where you the player pick a class on spawn. And after picking the class the GUI goes away. But after you die the GUI is SUPPOSED to re-appear, it does but only in Studio. In normal ROBLOX the GUI re-appears for less than a second and goes away in a flash. When I turn off FE it works fine. So anyone got any ideas?

Heres the script

player = game.Players.LocalPlayer
button = script.Parent:FindFirstChild("Play")
storage = game.StarterPack

button.MouseButton1Click:connect(function()
	local Pistol = storage:FindFirstChild("Pistol")
	player.Backpack.Pistol:Destroy()
	player.PlayerGui:FindFirstChild("ClassGUI").Enabled = false
		player.Character:WaitForChild("Humanoid").Died:connect(function()
			local ClassGui = script.Parent.Parent
			ClassGui:Clone().Parent = player.PlayerGui
			wait(5)
			ClassGui.Enabled = true
		print("Nope")
	end)
end)

Thanks for your time :)

5 comments

0

Guis have nothing to do with Filtering Enabled or not...

0

YES they do, in filtering enabled, GUIs from the StarterGui won't be accessible from the server. To bypass that people clone the gui's instead from the server.

0

Fault what do you mean. They clone them from Workspace?

0

FE does not affect guis, but the server cannot access the player.

0

Basically hes saying that you have to use a local script to access playergui whilst filtering enabled is turned on.