Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. maingui.TestBar.TextButton.MouseButton1Click:connect(function()
  2. local stringToReturn = RS:WaitForChild("ChatMessageTesting"):InvokeServer("stiiky is god")
  3. maingui.TestBar.TextLabel.Text = stringToReturn
  4.  
  5. local slashcount = 0
  6. local firstcolon = 0
  7.  
  8. for i=1, 100 do
  9. if string.sub(stringToReturn,i,i) == ":" then
  10. local playername = string.sub(stringToReturn,1,i-1)
  11. print(playername)
  12. slashcount = slashcount+1
  13. firstcolon = i
  14. break
  15. end
  16. end
  17.  
  18. for c=firstcolon+1, 100 do
  19. if string.sub(stringToReturn,c,c) == ":" then
  20. local title = string.sub(stringToReturn,c+1)
  21. print(title)
  22. local msg = string.sub(stringToReturn,firstcolon+1,c-1)
  23. print(msg)
  24. break
  25. end
  26. end
  27.  
  28.  
  29.  
  30. local slashcount = 0
  31. local firstcolon = 0
  32.  
  33. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement