As stated in the title, I've been attempting to create a script that would allow a GUI to become visible when a specific player joins the game, then becoming invisible shortly thereafter. The script I've made and used doesn't appear to have worked at all, and I'm a bit confused.
Here's my code.
function onPlayerEntered(newPlayer)
if (newPlayer.Name== "Jovelo") then
wait(2)
script.Parent = GUI
GUI.Visible = true
wait(10)
GUI.Visible = false
Anyone have any ideas?

4 comments
Do you want the GUI to be visible for everyone or only that player?
I'd like it to be visible for everyone, if possible.
for that, I think you'd need a remote event.
If I were you I would do that on client.