Gui Appearing Automatically issue

I am making a appear on its own script the output says nothing but it don’t work I did use a local script code:

while true do
wait(6)
game.StarterGui.ScreenGui.WARN.Visible = true
end

you’re enabling the GUI in the starterGUI not the player’s GUI, to prevent this put a local script in the GUI and do this

wait(6)
script.Parent.Warn.Visible = true

add onto the current code or make another script?

make a new local script and place it in the GUI

image
basically this

Output is saying:

Warn is not a valid member of Frame “Players.3DRobloxGameDev.PlayerGui.ScreenGui.Warn”

replace the script.Parent.Warn to script.Parent and it should work

Thank you and to make it loop i would do like while true do