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

GUI Instantly disappears In ROBLOX after death, but it works in Studio? I think its because of FE.

Asked by 6 years ago

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 :)

0
Guis have nothing to do with Filtering Enabled or not... arshad145 392 — 6y
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. F4ULT1NTH3D4T4 226 — 6y
0
Fault what do you mean. They clone them from Workspace? GottaHaveAFunTime 218 — 6y
0
FE does not affect guis, but the server cannot access the player. abnotaddable 920 — 6y
0
Basically hes saying that you have to use a local script to access playergui whilst filtering enabled is turned on. Prestory 1395 — 6y

Answer this question