Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Tool
- local Run = Instance.new("Tool", owner.Backpack)
- Run.Name = "Run"
- local P = Instance.new("Part", Run)
- P.Name = "Handle"
- P.Size = Vector3.new(1,1,1)
- local Player = Instance.new("Folder", Run)
- Player.Name = "Players"
- local PlrNumb = Instance.new("IntValue", Run)
- PlrNumb.Name = "PlrNumb"
- PlrNumb.Value = 1
- --Gui
- local GuiScreen = Instance.new("ScreenGui", owner.PlayerGui)
- GuiScreen.Name = "RunGui"
- GuiScreen.Enabled = false
- Run.Equipped:Connect(function(n)
- GuiScreen.Enabled = true
- end)
- Run.Unequipped:Connect(function(n)
- GuiScreen.Enabled = false
- end)
- local GuiFrame = Instance.new("Frame", GuiScreen)
- GuiFrame.Size = UDim2.new(1, 0, 1, 0)
- GuiFrame.BackgroundTransparency = 0.55000001192093
- local Text = Instance.new("TextLabel", GuiFrame)
- Text.Text = "Run"
- Text.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
- Text.BackgroundTransparency = 0.55000001192093
- Text.BorderSizePixel = 0
- Text.Size = UDim2.new(1, 0, 0.1, 0)
- Text.Font = Enum.Font.SciFi
- Text.TextSize = 50
- local Button1 = Instance.new("TextButton", GuiFrame)
- Button1.Text = "nil"
- Button1.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
- Button1.BackgroundTransparency = 0.55000001192093
- Button1.BorderSizePixel = 0
- Button1.Position = UDim2.new(0.15, 0, 0.35, 0)
- Button1.Size = UDim2.new(0.35, 0, 0.1, 0)
- Button1.Font = Enum.Font.SciFi
- Button1.TextColor3 = Color3.new(0, 0, 0)
- Button1.TextSize = 50
- Button1.MouseButton1Click:Connect(function()
- if PlrNumb.Value == 1 then
- Button1.Text = Player.Player2.Value.Name
- PlrNumb.Value = 3
- elseif Player:FindFirstChild("Player" .. PlrNumb.Value) then
- Button1.Text = Player:FindFirstChild("Player" .. PlrNumb.Value).Value.Name
- PlrNumb.Value = PlrNumb.Value + 1
- else
- Button1.Text = Player.Player2.Value.Name
- PlrNumb.Value = 3
- end
- end)
- local Button3 = Instance.new("TextButton", GuiFrame)
- Button3.Text = "Reload"
- Button3.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
- Button3.BackgroundTransparency = 0.55000001192093
- Button3.BorderSizePixel = 0
- Button3.Position = UDim2.new(0.15, 0, 0.45, 0)
- Button3.Size = UDim2.new(0.7, 0, 0.1, 0)
- Button3.Font = Enum.Font.SciFi
- Button3.TextColor3 = Color3.new(0, 0, 0)
- Button3.TextSize = 50
- Button3.MouseButton1Click:Connect(function()
- for i,v in pairs(Player:GetChildren()) do
- v:Remove()
- end
- local i = -1
- for i,v in pairs(game.Players:GetChildren()) do
- i = i + 1
- local playerNew = Instance.new("ObjectValue", Player)
- playerNew.Name = "Player" .. string.format(i)
- playerNew.Value = v
- end
- Button1.Text = "nil"
- Button2.Text = "nil"
- PlrNumb.Value = 1
- end)
- local Button4 = Instance.new("TextButton", GuiFrame)
- Button4.Text = "Execute"
- Button4.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
- Button4.BackgroundTransparency = 0.55000001192093
- Button4.BorderSizePixel = 0
- Button4.Position = UDim2.new(0.15, 0, 0.55, 0)
- Button4.Size = UDim2.new(0.7, 0, 0.1, 0)
- Button4.Font = Enum.Font.SciFi
- Button4.TextColor3 = Color3.new(0, 0, 0)
- Button4.TextSize = 50
- Button4.MouseButton1Click:Connect(function()
- if game.Players:FindFirstChild(Button1.Text) then
- execute(Button1.Text)
- end
- end)
- function execute(plr)
- print(plr)
- end
Add Comment
Please, Sign In to add comment