-- local script inside TextLabel 

local Players = game:GetService("Players")
local TextLabel = script.Parent

local function updateName()
	local player = Players.LocalPlayer
	TextLabel.Text = player.Name
end

updateName()
Players.PlayerAdded:Connect(updateName)
