Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- maingui.TestBar.TextButton.MouseButton1Click:connect(function()
- local stringToReturn = RS:WaitForChild("ChatMessageTesting"):InvokeServer("stiiky is god")
- maingui.TestBar.TextLabel.Text = stringToReturn
- local slashcount = 0
- local firstcolon = 0
- for i=1, 100 do
- if string.sub(stringToReturn,i,i) == ":" then
- local playername = string.sub(stringToReturn,1,i-1)
- print(playername)
- slashcount = slashcount+1
- firstcolon = i
- break
- end
- end
- for c=firstcolon+1, 100 do
- if string.sub(stringToReturn,c,c) == ":" then
- local title = string.sub(stringToReturn,c+1)
- print(title)
- local msg = string.sub(stringToReturn,firstcolon+1,c-1)
- print(msg)
- break
- end
- end
- local slashcount = 0
- local firstcolon = 0
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement