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

How to remove a " " from a value?

I posted a question similar to this a few minutes ago, but the answer to that does not help with the answer to this (unless my brain stopped working).

local a = script.Parent.Parent.Title.Text -- "Basic Hammer"
local b =  -- I want it to = "BasicHammer"

1 answer

Use this:

local a = script.Parent.Parent.Title.Text -- "Basic Hammer"
local b = string.gsub(a, " ", "")
print(b)

Please remember to mark as answer and upvote

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