Greetings. How can I make a frame appear when player joins and disappear after 5 seconds?

If I were from a beginner’s view, this would look like gibberish. Your variable names are super confusing, and you don’t explain a single thing you typed. Some questions could appear, like “why use GetService instead of just game.Players?” or “why use task.wait instead of wait?”

Just explain your code. You wrote it. It’s not hard.

Hmmmmmm How should i explain this?

_P = game:GetService("Players") -- Dont need this bro. Not yet-
_L = _P.LocalPlayer -- Player bro, Does Player things
_C = _L.Character -- Not this Either bro, this is bad coding



_S = _L:WaitForChild("PlayerGui"):WaitForChild("ScreenGui", 5) -- UI, Crazy bro

	task.wait(1) -- Wait 1 second bro
	_S.Enabled = true -- Is it Enabled bro?
	task.wait(5) -- Nah, lets wait 5 seconds bro
	_S.Enabled = false -- Nah lets disable it bro

Like i said, Self Explanatory

Greetings. Thank you for your help. I tried it out and it works.
Have a nice day.

Also, I have another question. So, player bought a gamepass(I know how to script with marketplace service) and a text label needs to appear. How can I achieve that?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.