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.