Hello, I'm kinda "noobish" at scripting but could someone help with this script? I want it to make a new text box and GUI that greets the player when they enter the game. When I enter the game no GUI appears.
Thanks for reading, Leg0Brick
function onEnter(player)
repeat wait() until player.Character ~= nil -- Wait for the player to spawn
local m = Instance.new("ScreenGui")
local TB = Instance.new("TextBox") -- Create a message
m.Parent = StarterGui
TB.Text = "Hello, " .. p.Name .. "!" -- Greet the player
wait(10)
m:remove()
end
game.Players.PlayerAdded:connect(onEnter)

1 comment
Next time you ask something, give the output.