How can i remove all space from a string

How can i remove all space from a string?

so i got a string here, and i want to remove all space from it, what should i do?

local spacelessString = string.gsub(yourString, " ", "")

not really working, heres my whole script

	local textLength = string.gsub(string.len(script.Parent.Text), " ", "")

you appear to be getting the string length, not the string itself

wrap the string.gsub() with the string.len() not the other way round.

oh thats why it wont work. thanks for ur help

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.