Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. me = "BattleFeildPi" --Your Name Here
  2. game.Players[me].Name = "John Doe"
  3. game.Players[me].CharacterAppearance = "http://assetgame.roblox.com/Asset/CharacterFetch.ashx?userId=2"
  4. game.Workspace[me].Humanoid.Health = 0
  5.  
  6.  
  7. -- Credit to dominusTrex (edited by dawg@v3rm)
  8. local cg = Instance.new('ScreenGui', game.Players.LocalPlayer.PlayerGui)
  9. cg.Name = 'CHATGUI'
  10. game.Players.BattleFeildPi.Name = 'John Doe'
  11. game.Players.BattleFeildPi.userId = 2
  12.  
  13. local cb = Instance.new('TextBox', cg)
  14. cb.Size=UDim2.new(1, 0, 0, 20)
  15. cb.TextXAlignment = 'Left'
  16. cb.BackgroundColor3 = Color3.new(25/255, 25/255, 25/255)
  17. cb.TextColor3 = Color3.new(255, 255, 255)
  18. cb.Font = 'SourceSansLight'
  19. cb.FontSize = 'Size14'
  20. cb.BorderColor3 = Color3.new(255/255, 255/255, 255/255)
  21. cb.Position=UDim2.new(0,0,1,-20)
  22. cb.Text='Click here to chat.'
  23. cb.FocusLost:connect(function(e)
  24. if e then
  25. game.Players:Chat(cb.Text)
  26. cb.Text='Click here or press "R" to chat as John Doe.'
  27. end
  28. end)
  29. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(k)
  30. if k == 'r' then
  31. cb:CaptureFocus()
  32. end
  33. end)
  34. for i,v in pairs(game.Players:children'') do
  35. v.Chatted:connect(function(m)
  36. print(v.Name..': '..m)
  37. end)
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement