GUI = game.StarterGui.LVL1GUI brick = script.Parent function activateGUI() GUI.Enabled = true wait(3) GUI.Enabled = false end brick.Touched:Connect(activateGUI)
I tried doing this but the GUI only appears after the player dies. Help pls thanks.
don't change the gui in StarterGUI
, each player has their own specific set of Gui that's from the StarterGui in their own "folder" called PlayerGui
local brick = script.Parent brick.Touched:Connect(function(activate) local humanoid = activate.Parent:FindFirstChild("Humanoid") if humanoid then local player = game.Players:FindFirstChild(activate.Parent.Name) player.PlayerGui.LVL1GUI.Enabled = true wait(3) player.PlayerGui.LVL1GUI.Enabled = false end end)