Mah script,
local text = ":flushed:"
text:gsub(":flushed:", " robux ")
print(text)
ain’t working. It prints “:flushed :” not “Robux”
Mah script,
local text = ":flushed:"
text:gsub(":flushed:", " robux ")
print(text)
ain’t working. It prints “:flushed :” not “Robux”
Strings are immutable, which means they cannot be modified. text:gsub
returns a new string, so you have to replace your variable with that.
text = text:gsub(":flushed:", " robux ")
What? What a bigginer mistake… How did I bypass that?!