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

Forcing text into caps?

I am trying to make the text force in to all caps from "test" to "TEST". Here is the script I am working with, it works fine but I am just trying to get the

songt.Text = data.Name

into CAPS

for i, id in pairs(require(list)) do
	pcall(function()
		local data = market:GetProductInfo (id);
		if data and data.AssetTypeId == 3 then 
			local songt = songtext:Clone();
			songt.Parent = frame;
			songt.Position = UDim2.new(0, 0, 0, songt.AbsoluteSize.y * (i - 1));
			songt.Text = data.Name
		end
	end)
end

2 answers

✓ Accepted answer

Ex is right, you just have to apply the function to what you're setting the text to.

songt.Text = data.Name

becomes,

songt.Text = string.upper( data.Name )

or, equivalently,

songt.Text = data.Name:upper()

1 comment

0

Works, thank you.

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