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

How to ignore part of a value?

I'm trying to create a variable that ignores the "$" in the text of a label and I don't know how, any ideas?

local item = script.Parent.Parent.Title.Text -- "$10"
local itemName = -- I want this to = 10

1 answer

✓ Accepted answer

Just get everything after the first character

local itemName = item:sub(2)

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