Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

game.Players.LocalPlayer.Name > Output: (playername).. Anyway to make that name all caps?

Say I have a script where when a remote is fired I want it to change the text of 2 text labels to the main players name in all CAPS, I thought of one way of doing this by splitting it and making it caps but I couldn't think of a way to do this

local charselected = game.ReplicatedStorage.charselected local mainchar = script.Parent

local function startMain(player)
	print(player.Name)
	mainchar.Enabled = true
	mainchar.nameblue.Text = player.Name
	mainchar.namewhite.Text = player.Name
end

charselected.OnServerEvent:Connect(startMain)

This is my code currently and I just want where this is

	mainchar.nameblue.Text = player.Name
	mainchar.namewhite.Text = player.Name

I want that player.Name to set the text labels text in all caps.

2 comments

0

Try mainchar.nameblue.Text = string.upper(player.Name)

0

You could also use player.Name:upper()

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.