Advertisement
01oalightblueboy8

Untitled

Jun 15th, 2019
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. local pl = game:GetService'Players'
  2. local plgc = pl:GetChildren()
  3.  
  4. function newmessage(plyr)
  5. plyr.Chatted:Connect(function(msg)
  6. print("[ Message ] "..plyr.Name..": "..msg)
  7. if plyr.Character then
  8. local HRP = plyr.Character:FindFirstChild'HumanoidRootPart'
  9. if HRP then
  10. local bib = nil
  11. if HRP:FindFirstChildWhichIsA'BillboardGui' then
  12. bib = HRP:FindFirstChildWhichIsA'BillboardGui'
  13. else
  14. bib = Instance.new("BillboardGui",HRP)
  15. end
  16. bib.MaxDistance = 100
  17. bib.ExtentsOffsetWorldSpace = Vector3.new(0,4,0)
  18. bib.Size = UDim2.new(1,800,1,600)
  19. local seconds = 5
  20.  
  21.  
  22. while seconds~=0 do
  23. seconds = seconds - 1
  24. if seconds==0 then
  25. bib:Destroy()
  26. end
  27. wait(1)
  28. end
  29. end
  30. end
  31. end)
  32. end
  33.  
  34. for _,v in pairs(plgc)do
  35. newmessage(v)
  36. end
  37. pl.PlayerAdded:Connect(function(per)
  38. newmessage(per)
  39. print("[ Game ] : Player added: "..per.Name)
  40. end)
  41. pl.PlayerRemoving:Connect(function(per)
  42. print("[ Game ] : Player removing: "..per.Name)
  43. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement