I need help "Welcome, player"

Hello, I need some help with “Welcome, player”… While I am aware there are dozens posts out there… I tried searching and didn’t find a solution to this.

This is what I tried so far (even looking up in devforum, etc) and these don’t work:

local txt = script.Parent

txt.Text = "Welcome, "..game.Players.LocalPlayer.Name
local player = game.Players.LocalPlayer
local txt = script.Parent

txt.Text = "Welcome, " .. player.Name
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local txt = script.Parent

local function updateWelcomeMessage()
    txt.Text = "Welcome, " .. player.Name
end

Players.PlayerAdded:Connect(updateWelcomeMessage)

I know this is a simple thing and it’s just silly but I really don’t understand what is wrong…

1 Like

Make sure the script is a local script.

2 Likes

Is this done on the server or the client? Which service are you attempting to make this work on?

1 Like

It’s for a staff panel. So basically “Welcome, (player) - (rank)”

1 Like

Can you share a screenshot of the explorer?

Nevermind… It was a server script… That’s why. Thanks Kaiden!

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