US Trends

how to do first and last name in roblox

In Roblox, you usually handle first and last names by making two separate text fields in your game or by using the built-in username/display name system. If you mean a custom name system for a game, the common approach is to store FirstName and LastName separately, then combine them when you show the full name.

In a Roblox game

Use two inputs:

  • First name
  • Last name

Then join them in code with a space, like this:

lua

local firstName = "Jesse"
local lastName = "Smith"
local fullName = firstName .. " " .. lastName
print(fullName)

That is the standard string-concatenation method for text in Roblox scripting.

If you mean your Roblox profile

Roblox has:

  • A username , which is unique and costs Robux to change.
  • A display name , which you can change for free and it does not have to be unique.

So if you want a “first and last name” style look on your profile, the closest option is usually the display name, not the username.

Common setup

A simple roleplay or NPC system usually does this:

  1. Ask the player for first name.
  2. Ask the player for last name.
  3. Save both values.
  4. Show them together as one full name in labels, badges, or UI.

Practical tip

If you are making a game, keep the names separate in storage, because that makes sorting, searching, and formatting easier later.

Example

If a player enters:

  • First name: Alex
  • Last name: Carter

Your game can display:

  • Alex Carter

That is usually the cleanest way to do first and last names in Roblox.

TL;DR

Roblox itself does not give you a separate “first name / last name” account system, but in a game you can make two input boxes and combine them, and on profiles you only get username plus display name.