Advertisement
Guest User

my innocent list function, might be useful

a guest
Jan 17th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.40 KB | None | 0 0
  1. --innolist
  2. local f4 = Instance.new('Frame')
  3. local f5 = Instance.new('Frame')
  4.  
  5. --innolist
  6. local tbn2 = Instance.new('TextButton')
  7.  
  8.  
  9. --innolist
  10. local tl3 = Instance.new('TextLabel')
  11. local tl4 = Instance.new('TextLabel')
  12. local tl5 = Instance.new('TextLabel')
  13.  
  14. f4.Name = "bg"
  15. f4.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  16. f4.BorderSizePixel = 0
  17. f4.Position = UDim2.new(-0.009, 0,0, 0)
  18. f4.Size = UDim2.new(0, 231,0, 109)
  19. f5.Name = "textbg"
  20. f5.BorderColor3 = Color3.fromRGB(54, 54, 57)
  21. f5.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  22. f5.BorderSizePixel = 2
  23. f5.Visible = false
  24. f5.Position = UDim2.new(0.062, 0,1.303, 0)
  25. f5.Size = UDim2.new(0, 200,0, 52)
  26.  
  27. tbn2.Name = "list"
  28. tbn2.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  29. tbn2.BorderColor3 = Color3.fromRGB(54, 54, 57)
  30. tbn2.BorderSizePixel = 2
  31. tbn2.Position = UDim2.new(1.625, 0,0.787, 0)
  32. tbn2.Size = UDim2.new(0, 241,0, 50)
  33. tbn2.Text = "Innocent Lister"
  34. tbn2.ZIndex = 2
  35. tbn2.TextColor3 = Color3.fromRGB(255,255,255)
  36. tbn2.TextSize = 22
  37.  
  38. tl3.Name = "innolist"
  39. tl3.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  40. tl3.Position = UDim2.new(-11, 0,0, -125)
  41. tl3.Size = UDim2.new(0, 227,0, 33)
  42. tl3.Text = "Innocent List"
  43. tl3.TextColor3 = Color3.fromRGB(255,255,255)
  44. tl3.TextSize = 22
  45. tl3.Draggable = true
  46. tl3.Selectable = true
  47. tl3.ZIndex = 2
  48. tl3.Active = true
  49. tl4.Name = "playerExample"
  50. tl4.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  51. tl4.BorderColor3 = Color3.fromRGB(54,54,57)
  52. tl4.BorderSizePixel = 2
  53. tl4.Size = UDim2.new(0, 182,0, 34)
  54. tl4.Position = UDim2.new(0.097, 0,1.576, 0)
  55. tl4.Visible = false
  56. tl4.ZIndex = 3
  57. tl4.Text = "nil"
  58. tl4.TextColor3 = Color3.fromRGB(255,255,255)
  59. tl4.TextScaled = true
  60. tl5.Name = "none"
  61. tl5.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  62. tl5.BorderColor3 = Color3.fromRGB(54,54,57)
  63. tl5.ZIndex = 2
  64. tl5.BorderSizePixel = 2
  65. tl5.Size = UDim2.new(0, 200,0, 50)
  66. tl5.Position = UDim2.new(0.059, 0,1.303, 0)
  67. tl5.Text = "None Available"
  68. tl5.TextSize = 18
  69. tl5.TextColor3 = Color3.fromRGB(255,255,255)
  70.  
  71. tbn2.MouseButton1Down:connect(function()
  72. f4.Size = UDim2.new(0, 231,0, 109)
  73. f5.Size = UDim2.new(0, 200,0, 52)
  74. if script.Parent.hold.innolist:FindFirstChild('players') then
  75. script.Parent.hold.innolist.players:Destroy()
  76. end
  77. innocentnumber = 0
  78. if innoOnOff == false then
  79. plr.PlayerGui.hackgui.hold.innolist:TweenPosition(UDim2.new(16.958, 0,0, -125), "Out", "Quad", 1)
  80. wait(1.01)
  81. plr.PlayerGui.hackgui.hold.innolist:TweenPosition(UDim2.new(16.958, 0,0, 0), "Out", "Quad", 0.5)
  82. innoOnOff = true
  83. elseif innoOnOff == true then
  84. plr.PlayerGui.hackgui.hold.innolist:TweenPosition(UDim2.new(16.958, 0,0, -125), "Out", "Quad", 0.5)
  85. wait(0.51)
  86. plr.PlayerGui.hackgui.hold.innolist:TweenPosition(UDim2.new(-11, 0,0, -125), "Out", "Quad", 1)
  87. innoOnOff = false
  88. end
  89. for i,v in pairs(game.Players:GetChildren()) do
  90. local name = v.Name
  91. local bg = script.Parent.hold.innolist.bg
  92. local textbg = script.Parent.hold.innolist.textbg
  93. local fold = Instance.new('Folder')
  94. fold.Name = "players"
  95. fold.Parent = script.Parent.hold.innolist
  96. wait()
  97. if v.Character:FindFirstChild('Role') then
  98. if v.Character.Role.Value == "Innocent" then
  99. local clone = examplePlayer:Clone()
  100. examplePlayer.Parent.none.Visible = false
  101. clone.Name = name
  102. clone.Parent = script.Parent.hold.innolist.players
  103. if innocentnumber == 0 then
  104. clone.Position = UDim2.new(examplePlayer.Position.X, examplePlayer.Position.Y)
  105. examplePlayer.Parent.textbg.Visible = true
  106. innocentnumber = 1
  107. else
  108. bg:TweenSize(UDim2.new(bg.Size.X.Scale, bg.Size.X.Offset, bg.Size.Y.Scale, bg.Size.Y.Offset + 39), "Out", "Quad", 2)
  109. wait(2.01)
  110. textbg:TweenSize(UDim2.new(textbg.Size.X.Scale, textbg.Size.X.Offset, textbg.Size.Y.Scale, textbg.Size.Y.Offset + 42), "Out", "Quad", 2)
  111. wait(2.01)
  112. clone.Position = UDim2.new(examplePlayer.Position.X.Scale, examplePlayer.Position.X.Offset, examplePlayer.Position.Y.Scale + 1.303, examplePlayer.Position.Y.Offset)
  113. examplePlayer.Position = UDim2.new(examplePlayer.Position.X.Scale, examplePlayer.Position.X.Offset, examplePlayer.Position.Y.Scale + 1.303, examplePlayer.Position.Y.Offset)
  114. end
  115. innocentnumber = innocentnumber + 1
  116. clone.Text = name
  117. clone.Visible = true
  118. end
  119. else
  120. end
  121. end
  122. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement