Advertisement
SatomiRentaro

Guest chat Raindrop

Jan 3rd, 2017
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 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.LocalPlayer:GetMouse().KeyDown:connect(function(k)
  23. if k == 'r' then
  24. cb:CaptureFocus()
  25. end
  26. end)
  27. for i,v in pairs(game.Players:children'') do
  28. v.Chatted:connect(function(m)
  29. print(v.Name..': '..m)
  30. end)
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement