How do I made a nameTag script like Admin systems?

Hi, excuse me if my answer is wrong, I just can’t open studio right now.

So, add a script inside your button and try adding this:

local Player

game.Players.PlayerAdded:Connect(function(plr)
       Player = plr
end)

local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")

local button = script.Parent

local function NameChanger(Name)
        Humanoid.DisplayName = Name
end)

button.MouseButton1Up:Connect(function()
         NameChanger(NewName) -- change NewName to the name you want
end)

As I said, please don’t mind me if there are any mistakes, I can’t have Roblox studio open now.

Delete the 3rd local script and if you haven’t already put the 2nd script inside the button.

Screenshot 2021-04-15 at 20.45.39

nope doesn’t work.