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

0

Is local myString = "NiceBoy;NotABigBoy" on line 30?

0

Uhh literally every single line except lines 1 and 6 is wrong

0

@RevergeHelps Wtf, the code got only 12 lines! @Kiriot22 Well, how would I do it then?

0

It says there's an error on line 30.

0

yea wtf

0

excuse me what]

0

Doesn't a semicolon break a line?

0

It works when you pull it outside the function..