poopiscool

Untitled

Feb 27th, 2018
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1.  
  2. local cg = Instance.new('ScreenGui', game.CoreGui)
  3. cg.Name = 'CHATGUI'
  4. game.Players.LocalPlayer.Name = 'NotGuest'
  5. game.Players.LocalPlayer.userId = 261
  6. game.Players.LocalPlayer:SetSuperSafeChat(false)
  7. local cb = Instance.new('TextBox', cg)
  8. cb.Size=UDim2.new(1, 0, 0, 20)
  9. cb.TextXAlignment = 'Left'
  10. cb.BackgroundColor3 = Color3.new(25/255, 25/255, 25/255)
  11. cb.TextColor3 = Color3.new(255, 255, 255)
  12. cb.Font = 'SourceSansLight'
  13. cb.FontSize = 'Size14'
  14. cb.BorderColor3 = Color3.new(255/255, 255/255, 255/255)
  15. cb.Position=UDim2.new(0,0,1,-20)
  16. cb.Text='Click here to chat.'
  17. cb.FocusLost:connect(function(e)
  18. if e then
  19. game.Players:Chat(cb.Text)
  20. cb.Text='Click here or press "R" to chat.'
  21. end
  22. end)
  23. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(k)
  24. if k == 'r' then
  25. cb:CaptureFocus()
  26. end
  27. end)
  28. for i,v in pairs(game.Players:children'') do
  29. v.Chatted:connect(function(m)
  30. print(v.Name..': '..m)
  31. end)
  32. end
Add Comment
Please, Sign In to add comment