Advertisement
Vzurxy

Untitled

Aug 3rd, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. loadstring(local Players = game:GetService("Players")
  2.  
  3. local SecurityCheck = {
  4. [6 | Security] = true;
  5. }
  6.  
  7. local HRCheck = {
  8. [8 | Head of Security] = true;
  9. [9 | Head of Services] = true;
  10. [10 | Head Receptionist] = true;
  11. [11 | Management] = true;
  12. [12 | Senior Management] = true;
  13. [14 | Shift Manager] = true;
  14. [15 | General Manager] = true;
  15. [16 | Board of Directors] = true;
  16. [17 | Vice Chairman] = true;
  17. [18 | Chairman] = true;
  18. }
  19.  
  20. function CreateNotification(Title)
  21.  
  22. local NoEvil = Instance.new("ScreenGui")
  23. local Backdrop = Instance.new("Frame")
  24. local Words = Instance.new("TextLabel")
  25.  
  26. NoEvil.Name = "NoEvil"
  27. NoEvil.Parent = game.CoreGui
  28.  
  29. Backdrop.Parent = NoEvil
  30. Backdrop.BackgroundColor3 = Color3.new(42/255 42/255 42/255)
  31. Backdrop.BackgroundTransparency = 0.2
  32. Backdrop.BorderSizePixel = 0
  33. Backdrop.Position = UDim2.new(0 0 -0.1 0)
  34. Backdrop.Size = UDim2.new(1 0 0.0183374081 30)
  35.  
  36. Words.Parent = Backdrop
  37. Words.BackgroundColor3 = Color3.new(1 1 1)
  38. Words.BackgroundTransparency = 1
  39. Words.Position = UDim2.new(0.31437701 0 0 0)
  40. Words.Size = UDim2.new(0.370607018 0 1 0)
  41. Words.Font = Enum.Font.SourceSansLight
  42. Words.Text = Title
  43. Words.TextColor3 = Color3.new(0.905882 0.905882 0.905882)
  44. Words.TextSize = 30
  45.  
  46. Backdrop:TweenPosition(UDim2.new(0 0 0 0) "In" "Linear" .2)
  47. wait(3.2)
  48. Backdrop:TweenPosition(UDim2.new(0 0 -.1 0) "Out" "Quad" .2)
  49. wait(.2)
  50. Notification:Destroy()
  51. end
  52.  
  53. function onPlayerAdded(player)
  54. if SecurityCheck[player:WaitForChild("leaderstats" 3).Rank.Value] then
  55. CreateNotification(tostring(player).. " has joined. Rank: Security")
  56. wait()
  57. end
  58. if HRCheck[player:WaitForChild("leaderstats" 3).Rank.Value] then
  59. CreateNotification("Warning.".. tostring(player).. "has joined." "Rank: ".. player:WaitForChild("leaderstats" 3).Rank.Value)
  60. wait(1)
  61. end
  62. end
  63.  
  64.  
  65. Players.PlayerAdded:connect(onPlayerAdded)
  66.  
  67.  
  68. for _player in pairs(Players:GetPlayers()) do
  69. onPlayerAdded(player)
  70. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement