Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to remove a " " from a value?

Asked by 4 years ago

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

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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

Ad

Answer this question