Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

GUI won't disappear after wait()?

Hi.

I have no idea why this script will not work. It works completely fine, but will not disable after my waitTime, which is 5 seconds.

local headadmins = {"Harrydamastr"}
local isHint = false
local waitTime = 5
local gui = game.StarterGui[".Joined"].InfoFrame.TextLabel
local frame = game.StarterGui[".Joined"]

game.Players.PlayerAdded:connect(function(player)
	for i, v in pairs(headadmins)do
		local result = nil
		if v == player.Name then
			gui.Text = player.Name.." (Owner/Game Creator) has joined the server."
			frame.Enabled = true
			wait(waitTime)
			frame.Enabled = false
		end
	end
end)

The script location is in game.ServerScriptService and it is a normal script, and Filtering Enabled is on. I've tried putting it in a LocalScript and moving the location of the script to somewhere else, but no luck.

2 comments

0

Try turning off FE and see whether it works or not

0

It's working now. Thanks, I'll just have to have Filtering Enabled turned off

1 answer

✓ Accepted answer

do frame.Visible = false it would be easier ;)

This discussion is preserved as it was. New answers, comments, and votes are closed.