Hellotop2

Untitled

Jan 26th, 2019
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.80 KB | None | 0 0
  1. id = 950346
  2. -- Objects
  3.  
  4. local JoinNotify = Instance.new("ScreenGui")
  5. local Background = Instance.new("ImageLabel")
  6. local PersonImage = Instance.new("ImageLabel")
  7. local PlayerName = Instance.new("TextLabel")
  8. local Age = Instance.new("TextLabel")
  9. local Rank = Instance.new("TextLabel")
  10. local Drop_Shadow = Instance.new("ImageLabel")
  11. local LoadingFrame = Instance.new("ImageLabel")
  12. local Drop_Shadow_2 = Instance.new("ImageLabel")
  13. local LoadingIcon = Instance.new("ImageLabel")
  14. local TextLabel = Instance.new("TextLabel")
  15.  
  16. -- Properties
  17.  
  18. JoinNotify.Name = "JoinNotify"
  19. JoinNotify.Parent = game.CoreGui
  20.  
  21. Background.Name = "Background"
  22. Background.Parent = JoinNotify
  23. Background.BackgroundColor3 = Color3.new(1, 1, 1)
  24. Background.BackgroundTransparency = 1
  25. Background.Position = UDim2.new(0.76618427, 0, 0.651935637, 0)
  26. Background.Size = UDim2.new(0.21341981, 0, 0.00259067351, 0)
  27. Background.Visible = false
  28. Background.ZIndex = 2
  29. Background.Image = "rbxassetid://760929926"
  30. Background.ScaleType = Enum.ScaleType.Slice
  31. Background.SliceCenter = Rect.new(5, 5, 5, 5)
  32.  
  33. PersonImage.Name = "PersonImage"
  34. PersonImage.Parent = Background
  35. PersonImage.BackgroundColor3 = Color3.new(1, 1, 1)
  36. PersonImage.BackgroundTransparency = 1
  37. PersonImage.Position = UDim2.new(0.0439549796, 0, 0.129411772, 0)
  38. PersonImage.Size = UDim2.new(0, 158, 0, 159)
  39. PersonImage.Visible = false
  40. PersonImage.ZIndex = 2
  41. PersonImage.Image = "rbxassetid://924320031"
  42.  
  43. PlayerName.Name = "PlayerName"
  44. PlayerName.Parent = Background
  45. PlayerName.BackgroundColor3 = Color3.new(1, 1, 1)
  46. PlayerName.BackgroundTransparency = 1
  47. PlayerName.Position = UDim2.new(0.45420146, 0, 0.129411772, 0)
  48. PlayerName.Size = UDim2.new(0, 200, 0, 50)
  49. PlayerName.Visible = false
  50. PlayerName.ZIndex = 2
  51. PlayerName.Font = Enum.Font.SourceSansLight
  52. PlayerName.TextColor3 = Color3.new(0, 0, 0)
  53. PlayerName.TextSize = 26
  54.  
  55. Age.Name = "Age"
  56. Age.Parent = Background
  57. Age.BackgroundColor3 = Color3.new(1, 1, 1)
  58. Age.BackgroundTransparency = 1
  59. Age.Position = UDim2.new(0.45420146, 0, 0.325490206, 0)
  60. Age.Size = UDim2.new(0, 200, 0, 50)
  61. Age.Visible = false
  62. Age.ZIndex = 2
  63. Age.Font = Enum.Font.SourceSansLight
  64. Age.TextColor3 = Color3.new(0, 0, 0)
  65. Age.TextSize = 26
  66.  
  67. Rank.Name = "Rank"
  68. Rank.Parent = Background
  69. Rank.BackgroundColor3 = Color3.new(1, 1, 1)
  70. Rank.BackgroundTransparency = 1
  71. Rank.Position = UDim2.new(0.45420146, 0, 0.521568656, 0)
  72. Rank.Size = UDim2.new(0, 200, 0, 50)
  73. Rank.Visible = false
  74. Rank.ZIndex = 2
  75. Rank.Font = Enum.Font.SourceSansLight
  76. Rank.TextColor3 = Color3.new(0, 0, 0)
  77. Rank.TextSize = 26
  78.  
  79. Drop_Shadow.Name = "Drop_Shadow"
  80. Drop_Shadow.Parent = Background
  81. Drop_Shadow.BackgroundColor3 = Color3.new(1, 1, 1)
  82. Drop_Shadow.BackgroundTransparency = 1
  83. Drop_Shadow.Position = UDim2.new(0, -35, 0, -35)
  84. Drop_Shadow.Size = UDim2.new(1, 70, 1, 70)
  85. Drop_Shadow.Image = "rbxassetid://1113384364"
  86. Drop_Shadow.ImageTransparency = 0.5
  87. Drop_Shadow.ScaleType = Enum.ScaleType.Slice
  88. Drop_Shadow.SliceCenter = Rect.new(50, 50, 50, 50)
  89.  
  90. LoadingFrame.Name = "LoadingFrame"
  91. LoadingFrame.Parent = JoinNotify
  92. LoadingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  93. LoadingFrame.BackgroundTransparency = 1
  94. LoadingFrame.Position = UDim2.new(0.423988521, 0, 0.31853804, 0)
  95. LoadingFrame.Size = UDim2.new(0.140761793, 0, 0.413424611, 0)
  96. LoadingFrame.ZIndex = 2
  97. LoadingFrame.Image = "rbxassetid://760929926"
  98. LoadingFrame.ScaleType = Enum.ScaleType.Slice
  99. LoadingFrame.SliceCenter = Rect.new(5, 5, 5, 5)
  100.  
  101. Drop_Shadow_2.Name = "Drop_Shadow"
  102. Drop_Shadow_2.Parent = LoadingFrame
  103. Drop_Shadow_2.BackgroundColor3 = Color3.new(1, 1, 1)
  104. Drop_Shadow_2.BackgroundTransparency = 1
  105. Drop_Shadow_2.Position = UDim2.new(0, -35, 0, -35)
  106. Drop_Shadow_2.Size = UDim2.new(1, 70, 1, 70)
  107. Drop_Shadow_2.Image = "rbxassetid://1113384364"
  108. Drop_Shadow_2.ImageTransparency = 0.5
  109. Drop_Shadow_2.ScaleType = Enum.ScaleType.Slice
  110. Drop_Shadow_2.SliceCenter = Rect.new(50, 50, 50, 50)
  111.  
  112. LoadingIcon.Name = "LoadingIcon"
  113. LoadingIcon.Parent = LoadingFrame
  114. LoadingIcon.BackgroundColor3 = Color3.new(1, 1, 1)
  115. LoadingIcon.BackgroundTransparency = 1
  116. LoadingIcon.BorderSizePixel = 0
  117. LoadingIcon.Position = UDim2.new(0.294455498, 0, 0.112047158, 0)
  118. LoadingIcon.Size = UDim2.new(0, 111, 0, 110)
  119. LoadingIcon.ZIndex = 5
  120. LoadingIcon.Image = "rbxassetid://714343976"
  121. LoadingIcon.ImageColor3 = Color3.new(0.509804, 0.509804, 0.509804)
  122.  
  123. TextLabel.Parent = LoadingFrame
  124. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  125. TextLabel.BackgroundTransparency = 1
  126. TextLabel.Position = UDim2.new(0.114951566, 0, 0.597733736, 0)
  127. TextLabel.Size = UDim2.new(0, 215, 0, 50)
  128. TextLabel.ZIndex = 6
  129. TextLabel.Font = Enum.Font.SourceSansLight
  130. TextLabel.Text = "Best cafe Join Notifier"
  131. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  132. TextLabel.TextScaled = true
  133. TextLabel.TextSize = 14
  134. TextLabel.TextWrapped = true
  135. for i=1,150 do wait()
  136. local timeInCycle = tick() % 2
  137. local cycleAlpha = (function()
  138. local t = (timeInCycle / 2) * 2
  139. if t < 1 then
  140. return 1 / 2 * t*t*t + 0
  141. else
  142. t = t - 2
  143. return 1 / 2 * (t * t * t + 2) + 1
  144. end
  145. end)()
  146.  
  147. LoadingIcon.Rotation = cycleAlpha * 360
  148. end
  149. LoadingIcon.Visible = false
  150. TextLabel.Visible = false
  151. LoadingFrame:TweenSize(UDim2.new(0.141, 0,0.001, 0), "Out", "Quad", 0.40)
  152. wait(0.40)
  153. LoadingFrame.Visible = false
  154. game.Players.PlayerAdded:Connect(function(p)
  155. Rank.Text = string.lower(p:GetRoleInGroup(id))
  156. Background.Visible = true
  157. Background:TweenSize(UDim2.new(0.213, 0,0.33, 0), "Out", "Quad", 0.40)
  158. wait(0.40)
  159. PersonImage.Visible = true
  160. Rank.Visible = true
  161. PlayerName.Visible = true
  162. Age.Visible = true
  163. PersonImage.Image = "http://www.roblox.com/thumbs/avatar.ashx?x=352&y=352&format=png&username="..p.Name
  164. PlayerName.Text = string.lower("[joined] "..p.Name)
  165. Age.Text = string.lower("Players in server: "..game.Players.NumPlayers.."/"..game.Players.MaxPlayers)
  166. wait(4)
  167. PersonImage.Visible = false
  168. Rank.Visible = false
  169. PlayerName.Visible = false
  170. Age.Visible = false
  171. Background:TweenSize(UDim2.new(0.213, 0,0.003, 0), "Out", "Quad", 0.40)
  172. wait(0.40)
  173. Background.Visible = false
  174. end)
  175.  
  176. game.Players.PlayerRemoving:Connect(function(pl)
  177. Rank.Text = string.lower(pl:GetRoleInGroup(id))
  178. Background.Visible = true
  179. Background:TweenSize(UDim2.new(0.213, 0,0.33, 0), "Out", "Quad", 0.40)
  180. wait(0.40)
  181. PersonImage.Visible = true
  182. Rank.Visible = true
  183. PlayerName.Visible = true
  184. Age.Visible = true
  185. PersonImage.Image = "http://www.roblox.com/thumbs/avatar.ashx?x=352&y=352&format=png&username="..pl.Name
  186. PlayerName.Text = string.lower("[left] "..pl.Name)
  187. Age.Text = string.lower("Players in server: "..game.Players.NumPlayers.."/"..game.Players.MaxPlayers)
  188. wait(4)
  189. PersonImage.Visible = false
  190. Rank.Visible = false
  191. PlayerName.Visible = false
  192. Age.Visible = false
  193. Background:TweenSize(UDim2.new(0.213, 0,0.003, 0), "Out", "Quad", 0.40)
  194. wait(0.40)
  195. Background.Visible = false
  196. end)
Advertisement
Add Comment
Please, Sign In to add comment