PlayerName Display

My script doesn’t allow me to display the players name.

local playerName = game.Players.LocalPlayer:GetFullName()

local PlayerName = script.Parent

PlayerName.Text = playerName

try this instead:

local playerName == game:GetService("Players").LocalPlayer.Name
local PlayerName = script.Parent

PlayerName.Text = playerName

You are checking like an if statement there you need to change the variable name

You are setting the same variable

local Players = game:GetService("Players")
local plr = Players.LocalPlayer

-- get player name
local playerName = plr.Name

-- set text to player name
local GUI = script.Parent
GUI.Text = playerName

Thanks for the help and by the way, it was 1 equal sign not 2.

I meant right here in this post