local example = "name | userid" for i in string.gmatch(example, " | ") do print(i) end
I'm trying to split name, and userid into separate strings, but the script above cuts out everything BUT the " | " when I want it to split on that, so how can I basically invert this?
local ID = "ID,ID,ID"; for i in string.gmatch(ID, "[^,^]+") do print(i) -- You can get the name by using a async called game.Players:GetNameFromUserIdAsync() end