Advertisement
coz

Untitled

coz
Sep 15th, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.74 KB | None | 0 0
  1. function GetPlayer(String)
  2. local Found = {}
  3. local strl = String:lower()
  4. if strl == "all" then
  5. for i,v in pairs(game.Players:GetPlayers()) do
  6. table.insert(Found,v.Name)
  7. end
  8. elseif strl == "others" then
  9. for i,v in pairs(game.Players:GetPlayers()) do
  10. if v.Name ~= game.Players.LocalPlayer.Name then
  11. table.insert(Found,v.Name)
  12. end
  13. end
  14. elseif strl == "me" then
  15. for i,v in pairs(game.Players:GetPlayers()) do
  16. if v.Name == game.Players.LocalPlayer.Name then
  17. table.insert(Found,v.Name)
  18. end
  19. end
  20. else
  21. for i,v in pairs(game.Players:GetPlayers()) do
  22. if v.Name:lower():sub(1, #String) == String:lower() then
  23. table.insert(Found,v.Name)
  24. end
  25. end
  26. end
  27. return Found
  28. end
  29.  
  30.  
  31.  
  32. local ScreenGui = Instance.new("ScreenGui")
  33. local Frame = Instance.new("Frame")
  34. local KillPlayer = Instance.new("TextButton")
  35. local targettext = Instance.new("TextBox")
  36. local _1m = Instance.new("TextButton")
  37. local AllGuns = Instance.new("TextButton")
  38. local _100k = Instance.new("TextButton")
  39. local TextLabel = Instance.new("TextLabel")
  40. --Properties:
  41. ScreenGui.Parent = game.CoreGui
  42. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  43.  
  44. Frame.Parent = ScreenGui
  45. Frame.Active = true
  46. Frame.Draggable = true
  47. Frame.BackgroundColor3 = Color3.new(0.733333, 0.886275, 1)
  48. Frame.BackgroundTransparency = 0.30000001192093
  49. Frame.BorderSizePixel = 2
  50. Frame.Position = UDim2.new(0.308285147, 0, 0.309885949, 0)
  51. Frame.Size = UDim2.new(0, 206, 0, 221)
  52.  
  53. KillPlayer.Name = "Kill Player"
  54. KillPlayer.Parent = Frame
  55. KillPlayer.BackgroundColor3 = Color3.new(1, 1, 1)
  56. KillPlayer.BackgroundTransparency = 0.5
  57. KillPlayer.Position = UDim2.new(0.0533980727, 0, 0.350336403, 0)
  58. KillPlayer.Size = UDim2.new(0, 87, 0, 35)
  59. KillPlayer.Font = Enum.Font.SourceSans
  60. KillPlayer.Text = "Kill Player"
  61. KillPlayer.TextColor3 = Color3.new(0, 0, 0)
  62. KillPlayer.TextSize = 18
  63. KillPlayer.MouseButton1Click:connect(function()
  64. if game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool") == nil then
  65. game.ReplicatedStorage.Events.CrateClaim:FireServer("Gear", game.ReplicatedStorage.BoxItems:FindFirstChildOfClass("Tool"))
  66. end
  67. wait()
  68. wait()
  69. wait()
  70. wait()
  71. wait()
  72. for i,v in pairs(GetPlayer(targettext.Text)) do
  73. for i=0,20 do
  74. game.ReplicatedStorage.WeaponItems.RemoteEvents.Hit:FireServer(game.Players[v].Character.HumanoidRootPart, game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool"))
  75. end
  76. end
  77.  
  78. end)
  79.  
  80.  
  81. targettext.Name = "targettext"
  82. targettext.Parent = Frame
  83. targettext.BackgroundColor3 = Color3.new(1, 1, 1)
  84. targettext.BackgroundTransparency = 0.5
  85. targettext.Position = UDim2.new(0.0873786435, 0, 0.159978524, 0)
  86. targettext.Size = UDim2.new(0, 170, 0, 29)
  87. targettext.Font = Enum.Font.SourceSans
  88. targettext.Text = ""
  89. targettext.TextColor3 = Color3.new(0, 0, 0)
  90. targettext.TextSize = 14
  91.  
  92. _1m.Name = "1m"
  93. _1m.Parent = Frame
  94. _1m.BackgroundColor3 = Color3.new(1, 1, 1)
  95. _1m.BackgroundTransparency = 0.5
  96. _1m.Position = UDim2.new(0.529126227, 0, 0.564152181, 0)
  97. _1m.Size = UDim2.new(0, 87, 0, 35)
  98. _1m.Font = Enum.Font.SourceSans
  99. _1m.Text = "1M Cash"
  100. _1m.TextColor3 = Color3.new(0, 0, 0)
  101. _1m.TextSize = 18
  102. _1m.MouseButton1Click:connect(function()
  103. for i = 0,200 do
  104. game.ReplicatedStorage.Events.CrateClaim:FireServer("Cash",5000)
  105. end
  106. end)
  107.  
  108. AllGuns.Name = "All Guns"
  109. AllGuns.Parent = Frame
  110. AllGuns.BackgroundColor3 = Color3.new(1, 1, 1)
  111. AllGuns.BackgroundTransparency = 0.5
  112. AllGuns.Position = UDim2.new(0.0533980727, 0, 0.56753099, 0)
  113. AllGuns.Size = UDim2.new(0, 87, 0, 35)
  114. AllGuns.Font = Enum.Font.SourceSans
  115. AllGuns.Text = "All Guns"
  116. AllGuns.TextColor3 = Color3.new(0, 0, 0)
  117. AllGuns.TextSize = 18
  118. AllGuns.MouseButton1Click:connect(function()
  119. for i,v in pairs(game.ReplicatedStorage.BoxItems:GetChildren()) do
  120.  
  121.  
  122. game.ReplicatedStorage.Events.CrateClaim:FireServer("Gear",v)
  123.  
  124. end
  125. end)
  126.  
  127. _100k.Name = "100k"
  128. _100k.Parent = Frame
  129. _100k.BackgroundColor3 = Color3.new(1, 1, 1)
  130. _100k.BackgroundTransparency = 0.5
  131. _100k.Position = UDim2.new(0.529126227, 0, 0.350336403, 0)
  132. _100k.Size = UDim2.new(0, 87, 0, 35)
  133. _100k.Font = Enum.Font.SourceSans
  134. _100k.Text = "100K Cash"
  135. _100k.TextColor3 = Color3.new(0, 0, 0)
  136. _100k.TextSize = 18
  137. _100k.MouseButton1Click:connect(function()
  138. for i = 0,20 do
  139. game.ReplicatedStorage.Events.CrateClaim:FireServer("Cash",5000)
  140. end
  141. end)
  142.  
  143. TextLabel.Parent = Frame
  144. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  145. TextLabel.BackgroundTransparency = 0.4
  146. TextLabel.Size = UDim2.new(0, 206, 0, 22)
  147. TextLabel.Font = Enum.Font.SourceSans
  148. TextLabel.Text = "Super Hero Tycoon GUI (ScriptX#3145)"
  149. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  150. TextLabel.TextSize = 14
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement