Advertisement
01oalightblueboy8

Untitled

Jun 15th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. if game.PlaceId == 843468296 or game.PlaceId == 843495510 or game.PlaceId == 897312463 or game.PlaceId == 2802358304 then
  2. local pl = game:GetService'Players'
  3. local plgc = pl:GetChildren()
  4.  
  5. function newmessage(plyr)
  6. plyr.Chatted:Connect(function(msg)
  7. print("[ Message ] "..plyr.Name..": "..msg)
  8. if plyr.Character then
  9. local HRP = plyr.Character:FindFirstChild'HumanoidRootPart'
  10. if HRP then
  11. local bib = nil
  12. local TL = nil
  13. if HRP:FindFirstChildWhichIsA'BillboardGui' then
  14. bib = HRP:FindFirstChildWhichIsA'BillboardGui'
  15. TL = bib:FindFirstChildWhichIsA'TextLabel'
  16. else
  17. bib = Instance.new("BillboardGui",HRP)
  18. TL = Instance.new('TextLabel',bib)
  19. end
  20. bib.MaxDistance = 100
  21. bib.ExtentsOffsetWorldSpace = Vector3.new(0,4,0)
  22. bib.Size = UDim2.new(1,800,1,600)
  23. TL.BackgroundTransparency = 1
  24. TL.TextStrokeTransparency = 0
  25. TL.Text = msg
  26. TL.Size = UDim2.new(0,800,0,600)
  27. TL.AnchorPoint = Vector2.new(.5,.5)
  28. TL.Position = UDim2.new(.5,0,.5,0)
  29. TL.TextColor = BrickColor.new("Institutional white")
  30. TL.TextSize= 25
  31. local seconds = 5
  32.  
  33.  
  34. while seconds~=0 do
  35. seconds = seconds - 1
  36. if seconds==0 then
  37. bib:Destroy()
  38. end
  39. wait(1)
  40. end
  41. end
  42. end
  43. end)
  44. end
  45.  
  46. for _,v in pairs(plgc)do
  47. newmessage(v)
  48. end
  49. pl.PlayerAdded:Connect(function(per)
  50. newmessage(per)
  51. print("[ Game ] : Player added: "..per.Name)
  52. end)
  53. pl.PlayerRemoving:Connect(function(per)
  54. print("[ Game ] : Player removing: "..per.Name)
  55. end)
  56. else
  57. print'Um no. Not work here sorry bud.'
  58. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement