Hey guys, I think I'm gonna even make a FixMyScript series out of this :D
Anyways, I tried to make my own function, but apparently the input/output parts don't work!
Thanks in advance!
local function SplitString(xString, Deliminer, Output1, Output2)
Output1, Output2 = xString:match("(.*)Deliminer(.*)")
end
local myString = "NiceBoy;NotABigBoy"
SplitString(myString, ';', xNiceBoy, xNotABigBoy)
print(xNiceBoy .. "====" .. xNotABigBoy)
=======================
Workspace.TESTSCRIPT:30: attempt to concatenate global 'xNotABigBoy' (a nil value)

8 comments
Is local myString = "NiceBoy;NotABigBoy" on line 30?
Uhh literally every single line except lines 1 and 6 is wrong
@RevergeHelps Wtf, the code got only 12 lines! @Kiriot22 Well, how would I do it then?
It says there's an error on line 30.
yea wtf
excuse me what]
Doesn't a semicolon break a line?
It works when you pull it outside the function..