Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- basically string.split from roblox
- function split(str,splitter)
- local tab = {}
- local lastnum = 1
- for i=1,#str do
- if string.sub(str,i,i) == splitter then
- table.insert(tab,string.sub(str,lastnum,i-1))
- lastnum = i+1
- end
- end
- table.insert(tab,string.sub(str,lastnum))
- return tab
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement