Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GetPlayer(String)
- local Found = {}
- local strl = String:lower()
- if strl == "all" then
- for i,v in pairs(game.Players:GetPlayers()) do
- table.insert(Found,v.Name)
- end
- elseif strl == "others" then
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Name ~= game.Players.LocalPlayer.Name then
- table.insert(Found,v.Name)
- end
- end
- elseif strl == "me" then
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Name == game.Players.LocalPlayer.Name then
- table.insert(Found,v.Name)
- end
- end
- else
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Name:lower():sub(1, #String) == String:lower() then
- table.insert(Found,v.Name)
- end
- end
- end
- return Found
- end
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local KillPlayer = Instance.new("TextButton")
- local targettext = Instance.new("TextBox")
- local _1m = Instance.new("TextButton")
- local AllGuns = Instance.new("TextButton")
- local _100k = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- --Properties:
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.Active = true
- Frame.Draggable = true
- Frame.BackgroundColor3 = Color3.new(0.733333, 0.886275, 1)
- Frame.BackgroundTransparency = 0.30000001192093
- Frame.BorderSizePixel = 2
- Frame.Position = UDim2.new(0.308285147, 0, 0.309885949, 0)
- Frame.Size = UDim2.new(0, 206, 0, 221)
- KillPlayer.Name = "Kill Player"
- KillPlayer.Parent = Frame
- KillPlayer.BackgroundColor3 = Color3.new(1, 1, 1)
- KillPlayer.BackgroundTransparency = 0.5
- KillPlayer.Position = UDim2.new(0.0533980727, 0, 0.350336403, 0)
- KillPlayer.Size = UDim2.new(0, 87, 0, 35)
- KillPlayer.Font = Enum.Font.SourceSans
- KillPlayer.Text = "Kill Player"
- KillPlayer.TextColor3 = Color3.new(0, 0, 0)
- KillPlayer.TextSize = 18
- KillPlayer.MouseButton1Click:connect(function()
- if game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool") == nil then
- game.ReplicatedStorage.Events.CrateClaim:FireServer("Gear", game.ReplicatedStorage.BoxItems:FindFirstChildOfClass("Tool"))
- end
- wait()
- wait()
- wait()
- wait()
- wait()
- for i,v in pairs(GetPlayer(targettext.Text)) do
- for i=0,20 do
- game.ReplicatedStorage.WeaponItems.RemoteEvents.Hit:FireServer(game.Players[v].Character.HumanoidRootPart, game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool"))
- end
- end
- end)
- targettext.Name = "targettext"
- targettext.Parent = Frame
- targettext.BackgroundColor3 = Color3.new(1, 1, 1)
- targettext.BackgroundTransparency = 0.5
- targettext.Position = UDim2.new(0.0873786435, 0, 0.159978524, 0)
- targettext.Size = UDim2.new(0, 170, 0, 29)
- targettext.Font = Enum.Font.SourceSans
- targettext.Text = ""
- targettext.TextColor3 = Color3.new(0, 0, 0)
- targettext.TextSize = 14
- _1m.Name = "1m"
- _1m.Parent = Frame
- _1m.BackgroundColor3 = Color3.new(1, 1, 1)
- _1m.BackgroundTransparency = 0.5
- _1m.Position = UDim2.new(0.529126227, 0, 0.564152181, 0)
- _1m.Size = UDim2.new(0, 87, 0, 35)
- _1m.Font = Enum.Font.SourceSans
- _1m.Text = "1M Cash"
- _1m.TextColor3 = Color3.new(0, 0, 0)
- _1m.TextSize = 18
- _1m.MouseButton1Click:connect(function()
- for i = 0,200 do
- game.ReplicatedStorage.Events.CrateClaim:FireServer("Cash",5000)
- end
- end)
- AllGuns.Name = "All Guns"
- AllGuns.Parent = Frame
- AllGuns.BackgroundColor3 = Color3.new(1, 1, 1)
- AllGuns.BackgroundTransparency = 0.5
- AllGuns.Position = UDim2.new(0.0533980727, 0, 0.56753099, 0)
- AllGuns.Size = UDim2.new(0, 87, 0, 35)
- AllGuns.Font = Enum.Font.SourceSans
- AllGuns.Text = "All Guns"
- AllGuns.TextColor3 = Color3.new(0, 0, 0)
- AllGuns.TextSize = 18
- AllGuns.MouseButton1Click:connect(function()
- for i,v in pairs(game.ReplicatedStorage.BoxItems:GetChildren()) do
- game.ReplicatedStorage.Events.CrateClaim:FireServer("Gear",v)
- end
- end)
- _100k.Name = "100k"
- _100k.Parent = Frame
- _100k.BackgroundColor3 = Color3.new(1, 1, 1)
- _100k.BackgroundTransparency = 0.5
- _100k.Position = UDim2.new(0.529126227, 0, 0.350336403, 0)
- _100k.Size = UDim2.new(0, 87, 0, 35)
- _100k.Font = Enum.Font.SourceSans
- _100k.Text = "100K Cash"
- _100k.TextColor3 = Color3.new(0, 0, 0)
- _100k.TextSize = 18
- _100k.MouseButton1Click:connect(function()
- for i = 0,20 do
- game.ReplicatedStorage.Events.CrateClaim:FireServer("Cash",5000)
- end
- end)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 0.4
- TextLabel.Size = UDim2.new(0, 206, 0, 22)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "Super Hero Tycoon GUI (ScriptX#3145)"
- TextLabel.TextColor3 = Color3.new(0, 0, 0)
- TextLabel.TextSize = 14
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement