Advertisement
Hellotop2

Untitled

Jan 26th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.36 KB | None | 0 0
  1. -- Objects
  2.  
  3. local JoinNotify = Instance.new("ScreenGui")
  4. local Background = Instance.new("ImageLabel")
  5. local PersonImage = Instance.new("ImageLabel")
  6. local PlayerName = Instance.new("TextLabel")
  7. local Age = Instance.new("TextLabel")
  8. local Rank = Instance.new("TextLabel")
  9. local Drop_Shadow = Instance.new("ImageLabel")
  10.  
  11. -- Properties
  12.  
  13. JoinNotify.Name = "JoinNotify"
  14. JoinNotify.Parent = game.CoreGui
  15.  
  16. Background.Name = "Background"
  17. Background.Parent = JoinNotify
  18. Background.BackgroundColor3 = Color3.new(1, 1, 1)
  19. Background.BackgroundTransparency = 1
  20. Background.Position = UDim2.new(0.76618427, 0, 0.651935637, 0)
  21. Background.Size = UDim2.new(0.21341981, 0, 0.00259067351, 0)
  22. Background.Visible = false
  23. Background.ZIndex = 2
  24. Background.Image = "rbxassetid://760929926"
  25. Background.ScaleType = Enum.ScaleType.Slice
  26. Background.SliceCenter = Rect.new(5, 5, 5, 5)
  27.  
  28. PersonImage.Name = "PersonImage"
  29. PersonImage.Parent = Background
  30. PersonImage.BackgroundColor3 = Color3.new(1, 1, 1)
  31. PersonImage.BackgroundTransparency = 1
  32. PersonImage.Position = UDim2.new(0.0439549796, 0, 0.129411772, 0)
  33. PersonImage.Size = UDim2.new(0, 158, 0, 159)
  34. PersonImage.Visible = false
  35. PersonImage.ZIndex = 2
  36. PersonImage.Image = "rbxassetid://924320031"
  37.  
  38. PlayerName.Name = "PlayerName"
  39. PlayerName.Parent = Background
  40. PlayerName.BackgroundColor3 = Color3.new(1, 1, 1)
  41. PlayerName.BackgroundTransparency = 1
  42. PlayerName.Position = UDim2.new(0.45420146, 0, 0.129411772, 0)
  43. PlayerName.Size = UDim2.new(0, 200, 0, 50)
  44. PlayerName.Visible = false
  45. PlayerName.ZIndex = 2
  46. PlayerName.Font = Enum.Font.SourceSansLight
  47. PlayerName.TextColor3 = Color3.new(0, 0, 0)
  48. PlayerName.TextSize = 26
  49.  
  50. Age.Name = "Age"
  51. Age.Parent = Background
  52. Age.BackgroundColor3 = Color3.new(1, 1, 1)
  53. Age.BackgroundTransparency = 1
  54. Age.Position = UDim2.new(0.45420146, 0, 0.325490206, 0)
  55. Age.Size = UDim2.new(0, 200, 0, 50)
  56. Age.Visible = false
  57. Age.ZIndex = 2
  58. Age.Font = Enum.Font.SourceSansLight
  59. Age.TextColor3 = Color3.new(0, 0, 0)
  60. Age.TextSize = 26
  61.  
  62. Rank.Name = "Rank"
  63. Rank.Parent = Background
  64. Rank.BackgroundColor3 = Color3.new(1, 1, 1)
  65. Rank.BackgroundTransparency = 1
  66. Rank.Position = UDim2.new(0.45420146, 0, 0.521568656, 0)
  67. Rank.Size = UDim2.new(0, 200, 0, 50)
  68. Rank.Visible = false
  69. Rank.ZIndex = 2
  70. Rank.Font = Enum.Font.SourceSansLight
  71. Rank.TextColor3 = Color3.new(0, 0, 0)
  72. Rank.TextSize = 26
  73.  
  74. Drop_Shadow.Name = "Drop_Shadow"
  75. Drop_Shadow.Parent = Background
  76. Drop_Shadow.BackgroundColor3 = Color3.new(1, 1, 1)
  77. Drop_Shadow.BackgroundTransparency = 1
  78. Drop_Shadow.Position = UDim2.new(0, -35, 0, -35)
  79. Drop_Shadow.Size = UDim2.new(1, 70, 1, 70)
  80. Drop_Shadow.Image = "rbxassetid://1113384364"
  81. Drop_Shadow.ImageTransparency = 0.5
  82. Drop_Shadow.ScaleType = Enum.ScaleType.Slice
  83. Drop_Shadow.SliceCenter = Rect.new(50, 50, 50, 50)
  84. game.Players.PlayerAdded:Connect(function(p)
  85. Rank.Text = string.lower(p:GetRoleInGroup(950346))
  86. Background.Visible = true
  87. Background:TweenSize(UDim2.new(0.213, 0,0.33, 0), "Out", "Quad", 0.40)
  88. wait(0.40)
  89. PersonImage.Visible = true
  90. Rank.Visible = true
  91. PlayerName.Visible = true
  92. Age.Visible = true
  93. PersonImage.Image = "http://www.roblox.com/thumbs/avatar.ashx?x=352&y=352&format=png&username="..p.Name
  94. PlayerName.Text = string.lower("[joined] "..p.Name)
  95. Age.Text = string.lower("Players in server: "..game.Players.NumPlayers.."/"..game.Players.MaxPlayers)
  96. wait(4)
  97. PersonImage.Visible = false
  98. Rank.Visible = false
  99. PlayerName.Visible = false
  100. Age.Visible = false
  101. Background:TweenSize(UDim2.new(0.213, 0,0.003, 0), "Out", "Quad", 0.40)
  102. wait(0.40)
  103. Background.Visible = false
  104. end)
  105.  
  106. game.Players.PlayerRemoving:Connect(function(pl)
  107. Rank.Text = string.lower(pl:GetRoleInGroup(950346))
  108. Background.Visible = true
  109. Background:TweenSize(UDim2.new(0.213, 0,0.33, 0), "Out", "Quad", 0.40)
  110. wait(0.40)
  111. PersonImage.Visible = true
  112. Rank.Visible = true
  113. PlayerName.Visible = true
  114. Age.Visible = true
  115. PersonImage.Image = "http://www.roblox.com/thumbs/avatar.ashx?x=352&y=352&format=png&username="..pl.Name
  116. PlayerName.Text = string.lower("[left] "..pl.Name)
  117. Age.Text = string.lower("Players in server: "..game.Players.NumPlayers.."/"..game.Players.MaxPlayers)
  118. wait(4)
  119. PersonImage.Visible = false
  120. Rank.Visible = false
  121. PlayerName.Visible = false
  122. Age.Visible = false
  123. Background:TweenSize(UDim2.new(0.213, 0,0.003, 0), "Out", "Quad", 0.40)
  124. wait(0.40)
  125. Background.Visible = false
  126. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement