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.
01 | local headadmins = { "Harrydamastr" } |
04 | local gui = game.StarterGui [ ".Joined" ] .InfoFrame.TextLabel |
05 | local frame = game.StarterGui [ ".Joined" ] |
07 | game.Players.PlayerAdded:connect( function (player) |
08 | for i, v in pairs (headadmins) do |
10 | if v = = player.Name then |
11 | gui.Text = player.Name.. " (Owner/Game Creator) has joined the server." |
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.