So When u make a string there are functions that made by roblox it self But i have question is there difference between calling the function right away like this
local EditedMessage ,howManyTimesEditedy = MessageEdited:gsub("ez","Good Game")
Or by useing The string library?
local EditedMessage ,howManyTimesEditedy = string:gsub(Str,"ez","Good Game")
what is the difference between calling it with each method? is there one better than the other
There’s not much of a big difference, both call the same function underneath, though MessageEdited:gsub() might be easier than doing string.gsub() since MessageEdited:gsub() already gives itself as the first argument of the string to modify.