Advertisement
Sinfhell

Talking guest

Jan 16th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. local cg = Instance.new('ScreenGui', game.Players.LocalPlayer.PlayerGui)
  2. cg.Name = 'CHATGUI'
  3. game.Players.LocalPlayer.Name = 'NotGuest'
  4. game.Players.LocalPlayer.userId = 261
  5. game.Players.LocalPlayer:SetSuperSafeChat(false)
  6. local cb = Instance.new('TextBox', cg)
  7. cb.Size=UDim2.new(1, 0, 0, 20)
  8. cb.TextXAlignment = 'Left'
  9. cb.BackgroundColor3 = Color3.new(25/255, 25/255, 25/255)
  10. cb.TextColor3 = Color3.new(255, 255, 255)
  11. cb.Font = 'SourceSansLight'
  12. cb.FontSize = 'Size14'
  13. cb.BorderColor3 = Color3.new(255/255, 255/255, 255/255)
  14. cb.Position=UDim2.new(0,0,1,-20)
  15. cb.Text='Click here to chat.'
  16. cb.FocusLost:connect(function(e)
  17. if e then
  18. game.Players:Chat(cb.Text)
  19. cb.Text='Click here or press "R" to chat.'
  20. end
  21. end)
  22. game.Players.Localocal cg = Instance.new('ScreenGui', game.Players.LocalPlayer.PlayerGui)
  23. cg.Name = 'CHATGUI'
  24. game.Players.LocalPlayer.Name = 'NotGuest'
  25. game.Players.LocalPlayer.userId = 261
  26. game.Players.LocalPlayer:SetSuperSafeChat(false)
  27. local cb = Instance.new('TextBox', cg)
  28. cb.Size=UDim2.new(1, 0, 0, 20)
  29. cb.TextXAlignment = 'Left'
  30. cb.BackgroundColor3 = Color3.new(25/255, 25/255, 25/255)
  31. cb.TextColor3 = Color3.new(255, 255, 255)
  32. cb.Font = 'SourceSansLight'
  33. cb.FontSize = 'Size14'
  34. cb.BorderColor3 = Color3.new(255/255, 255/255, 255/255)
  35. cb.Position=UDim2.new(0,0,1,-20)
  36. cb.Text='Click here to chat.'
  37. cb.FocusLost:connect(function(e)
  38. if e then
  39. game.Players:Chat(cb.Text)
  40. cb.Text='Click here or press "R" to chat.'
  41. end
  42. end)
  43. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(k)
  44. if k == 'r' then
  45. cb:CaptureFocus()
  46. end
  47. end)
  48. for i,v in pairs(game.Players:children'') do
  49. v.Chatted:connect(function(m)
  50. print(v.Name..': '..m)
  51. end)
  52. endlPlayer:GetMouse().KeyDown:connect(function(k)
  53. if k == 'r' then
  54. cb:CaptureFocus()
  55. end
  56. end)
  57. for i,v in pairs(game.Players:children'') do
  58. v.Chatted:connect(function(m)
  59. print(v.Name..': '..m)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement