KirillKa2D

Serverside kill all

May 26th, 2025 (edited)
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 27.50 KB | None | 0 0
  1. --[[
  2. Supported games:
  3. https://www.roblox.com/games/107476030760322/Cart-Ride-into-Spiderman
  4. https://www.roblox.com/games/9458832163/Cart-Ride-into-El-gato
  5. https://www.roblox.com/games/12841354936/Escape-Digital-Circus-Cart-Ride
  6. First game: 70-80 players
  7. Second game: 40-50 players
  8. third game: 190-200 players🔥
  9. ]]
  10.  
  11.  
  12.  
  13. local Player = game:GetService("Players").LocalPlayer;
  14. local UIS = game:GetService("UserInputService");
  15. local TweenService = game:GetService("TweenService");
  16. local supportedGames = {[107476030760322]="Cart-Ride-into-Spiderman",[9458832163]="Cart-Ride-into-El-gato",[12841354936]="Escape-Digital-Circus-Cart-Ride"};
  17. local currentGameId = game.PlaceId;
  18. local isSupportedGame = supportedGames[currentGameId] ~= nil;
  19. local replicatedStorage = game:GetService("ReplicatedStorage");
  20. local hasSkipEndEvent = replicatedStorage:FindFirstChild("Events") and replicatedStorage.Events:FindFirstChild("SkipEndEvent");
  21. local hasKillEvent = replicatedStorage:FindFirstChild("Events") and replicatedStorage.Events:FindFirstChild("KillEvent");
  22. local function CreateMessageBox(title, message, options)
  23.     local ScreenGui = Instance.new("ScreenGui");
  24.     ScreenGui.Name = "MessageBoxGUI";
  25.     ScreenGui.Parent = game:GetService("CoreGui");
  26.     local MainFrame = Instance.new("Frame");
  27.     MainFrame.Name = "MainFrame";
  28.     MainFrame.Size = UDim2.new(0, 300, 0, 200);
  29.     MainFrame.Position = UDim2.new(0.5, -150, 0.5, -100);
  30.     MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30);
  31.     MainFrame.BorderSizePixel = 0;
  32.     MainFrame.Active = true;
  33.     MainFrame.Draggable = true;
  34.     MainFrame.Parent = ScreenGui;
  35.     local Title = Instance.new("TextLabel");
  36.     Title.Name = "Title";
  37.     Title.Size = UDim2.new(1, 0, 0, 30);
  38.     Title.Position = UDim2.new(0, 0, 0, 0);
  39.     Title.BackgroundColor3 = Color3.fromRGB(20, 20, 20);
  40.     Title.TextColor3 = Color3.fromRGB(255, 255, 255);
  41.     Title.Text = title;
  42.     Title.Font = Enum.Font.GothamBold;
  43.     Title.TextSize = 14;
  44.     Title.Parent = MainFrame;
  45.     local Message = Instance.new("TextLabel");
  46.     Message.Name = "Message";
  47.     Message.Size = UDim2.new(1, -20, 1, -80);
  48.     Message.Position = UDim2.new(0, 10, 0, 40);
  49.     Message.BackgroundTransparency = 1;
  50.     Message.TextColor3 = Color3.fromRGB(255, 255, 255);
  51.     Message.Text = message;
  52.     Message.Font = Enum.Font.Gotham;
  53.     Message.TextSize = 12;
  54.     Message.TextWrapped = true;
  55.     Message.Parent = MainFrame;
  56.     local ButtonsFrame = Instance.new("Frame");
  57.     ButtonsFrame.Name = "ButtonsFrame";
  58.     ButtonsFrame.Size = UDim2.new(1, -20, 0, 30);
  59.     ButtonsFrame.Position = UDim2.new(0, 10, 1, -40);
  60.     ButtonsFrame.BackgroundTransparency = 1;
  61.     ButtonsFrame.Parent = MainFrame;
  62.     local UIListLayout = Instance.new("UIListLayout");
  63.     UIListLayout.FillDirection = Enum.FillDirection.Horizontal;
  64.     UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center;
  65.     UIListLayout.Padding = UDim.new(0, 10);
  66.     UIListLayout.Parent = ButtonsFrame;
  67.     for i, option in ipairs(options) do
  68.         local Button = Instance.new("TextButton");
  69.         Button.Name = option.text .. "Button";
  70.         Button.Size = UDim2.new(0.5, -10, 1, 0);
  71.         Button.BackgroundColor3 = Color3.fromRGB(50, 50, 50);
  72.         Button.TextColor3 = Color3.fromRGB(255, 255, 255);
  73.         Button.Text = option.text;
  74.         Button.Font = Enum.Font.Gotham;
  75.         Button.TextSize = 12;
  76.         Button.Parent = ButtonsFrame;
  77.         Button.MouseButton1Click:Connect(function()
  78.             option.callback();
  79.             ScreenGui:Destroy();
  80.         end);
  81.     end
  82.     return ScreenGui;
  83. end
  84. local function CreateGameSelectionUI()
  85.     local ScreenGui = Instance.new("ScreenGui");
  86.     ScreenGui.Name = "GameSelectionGUI";
  87.     ScreenGui.Parent = game:GetService("CoreGui");
  88.     local MainFrame = Instance.new("Frame");
  89.     MainFrame.Name = "MainFrame";
  90.     MainFrame.Size = UDim2.new(0, 300, 0, 250);
  91.     MainFrame.Position = UDim2.new(0.5, -150, 0.5, -125);
  92.     MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30);
  93.     MainFrame.BorderSizePixel = 0;
  94.     MainFrame.Active = true;
  95.     MainFrame.Draggable = true;
  96.     MainFrame.Parent = ScreenGui;
  97.     local Title = Instance.new("TextLabel");
  98.     Title.Name = "Title";
  99.     Title.Size = UDim2.new(1, 0, 0, 30);
  100.     Title.Position = UDim2.new(0, 0, 0, 0);
  101.     Title.BackgroundColor3 = Color3.fromRGB(20, 20, 20);
  102.     Title.TextColor3 = Color3.fromRGB(255, 255, 255);
  103.     Title.Text = "SELECT SUPPORTED GAME";
  104.     Title.Font = Enum.Font.GothamBold;
  105.     Title.TextSize = 14;
  106.     Title.Parent = MainFrame;
  107.     local CloseButton = Instance.new("TextButton");
  108.     CloseButton.Name = "CloseButton";
  109.     CloseButton.Size = UDim2.new(0, 30, 0, 30);
  110.     CloseButton.Position = UDim2.new(1, -30, 0, 0);
  111.     CloseButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50);
  112.     CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255);
  113.     CloseButton.Text = "X";
  114.     CloseButton.Font = Enum.Font.GothamBold;
  115.     CloseButton.TextSize = 14;
  116.     CloseButton.Parent = MainFrame;
  117.     CloseButton.MouseButton1Click:Connect(function()
  118.         ScreenGui:Destroy();
  119.     end);
  120.     local GamesFrame = Instance.new("ScrollingFrame");
  121.     GamesFrame.Name = "GamesFrame";
  122.     GamesFrame.Size = UDim2.new(1, -20, 1, -50);
  123.     GamesFrame.Position = UDim2.new(0, 10, 0, 40);
  124.     GamesFrame.BackgroundTransparency = 1;
  125.     GamesFrame.CanvasSize = UDim2.new(0, 0, 0, #supportedGames * 40);
  126.     GamesFrame.Parent = MainFrame;
  127.     local UIListLayout = Instance.new("UIListLayout");
  128.     UIListLayout.Padding = UDim.new(0, 10);
  129.     UIListLayout.Parent = GamesFrame;
  130.     for gameId, gameName in pairs(supportedGames) do
  131.         local GameButton = Instance.new("TextButton");
  132.         GameButton.Name = gameName .. "Button";
  133.         GameButton.Size = UDim2.new(1, 0, 0, 30);
  134.         GameButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50);
  135.         GameButton.TextColor3 = Color3.fromRGB(255, 255, 255);
  136.         GameButton.Text = gameName;
  137.         GameButton.Font = Enum.Font.Gotham;
  138.         GameButton.TextSize = 12;
  139.         GameButton.Parent = GamesFrame;
  140.         GameButton.MouseButton1Click:Connect(function()
  141.             game:GetService("TeleportService"):Teleport(gameId);
  142.         end);
  143.     end
  144.     return ScreenGui;
  145. end
  146. local function CreateClientUI()
  147.     local ScreenGui = Instance.new("ScreenGui");
  148.     ScreenGui.Name = "ClientGUI";
  149.     ScreenGui.Parent = game:GetService("CoreGui");
  150.     local MainFrame = Instance.new("Frame");
  151.     MainFrame.Name = "MainFrame";
  152.     MainFrame.Size = UDim2.new(0, 300, 0, 200);
  153.     MainFrame.Position = UDim2.new(0.5, -150, 0.5, -100);
  154.     MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30);
  155.     MainFrame.BorderSizePixel = 0;
  156.     MainFrame.Active = true;
  157.     MainFrame.Draggable = true;
  158.     MainFrame.Parent = ScreenGui;
  159.     local Title = Instance.new("TextLabel");
  160.     Title.Name = "Title";
  161.     Title.Size = UDim2.new(1, 0, 0, 30);
  162.     Title.Position = UDim2.new(0, 0, 0, 0);
  163.     Title.BackgroundColor3 = Color3.fromRGB(20, 20, 20);
  164.     Title.TextColor3 = Color3.fromRGB(255, 255, 255);
  165.     Title.Text = "CLIENT GUI";
  166.     Title.Font = Enum.Font.GothamBold;
  167.     Title.TextSize = 14;
  168.     Title.Parent = MainFrame;
  169.     local CloseButton = Instance.new("TextButton");
  170.     CloseButton.Name = "CloseButton";
  171.     CloseButton.Size = UDim2.new(0, 30, 0, 30);
  172.     CloseButton.Position = UDim2.new(1, -30, 0, 0);
  173.     CloseButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50);
  174.     CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255);
  175.     CloseButton.Text = "X";
  176.     CloseButton.Font = Enum.Font.GothamBold;
  177.     CloseButton.TextSize = 14;
  178.     CloseButton.Parent = MainFrame;
  179.     CloseButton.MouseButton1Click:Connect(function()
  180.         ScreenGui:Destroy();
  181.     end);
  182.     local ButtonsFrame = Instance.new("Frame");
  183.     ButtonsFrame.Name = "ButtonsFrame";
  184.     ButtonsFrame.Size = UDim2.new(1, -20, 1, -50);
  185.     ButtonsFrame.Position = UDim2.new(0, 10, 0, 40);
  186.     ButtonsFrame.BackgroundTransparency = 1;
  187.     ButtonsFrame.Parent = MainFrame;
  188.     local UIListLayout = Instance.new("UIListLayout");
  189.     UIListLayout.Padding = UDim.new(0, 10);
  190.     UIListLayout.Parent = ButtonsFrame;
  191.     local function CreateButton(text, callback)
  192.         local Button = Instance.new("TextButton");
  193.         Button.Name = text .. "Button";
  194.         Button.Size = UDim2.new(1, 0, 0, 30);
  195.         Button.BackgroundColor3 = Color3.fromRGB(50, 50, 50);
  196.         Button.TextColor3 = Color3.fromRGB(255, 255, 255);
  197.         Button.Text = text;
  198.         Button.Font = Enum.Font.Gotham;
  199.         Button.TextSize = 12;
  200.         Button.Parent = ButtonsFrame;
  201.         Button.MouseButton1Click:Connect(callback);
  202.         return Button;
  203.     end
  204.     local speedEnabled = false;
  205.     local jumpEnabled = false;
  206.     local respawnEnabled = false;
  207.     local originalWalkSpeed = 16;
  208.     local originalJumpPower = 50;
  209.     local function ToggleSpeed()
  210.         speedEnabled = not speedEnabled;
  211.         local button = ButtonsFrame:FindFirstChild("Speed (x3)Button");
  212.         if button then
  213.             button.BackgroundColor3 = (speedEnabled and Color3.fromRGB(50, 255, 50)) or Color3.fromRGB(50, 50, 50);
  214.         end
  215.         if (Player.Character and Player.Character:FindFirstChild("Humanoid")) then
  216.             if speedEnabled then
  217.                 Player.Character.Humanoid.WalkSpeed = originalWalkSpeed * 3;
  218.             else
  219.                 Player.Character.Humanoid.WalkSpeed = originalWalkSpeed;
  220.             end
  221.         end
  222.         Player.CharacterAdded:Connect(function(character)
  223.             character:WaitForChild("Humanoid");
  224.             if speedEnabled then
  225.                 character.Humanoid.WalkSpeed = originalWalkSpeed * 3;
  226.             else
  227.                 character.Humanoid.WalkSpeed = originalWalkSpeed;
  228.             end
  229.         end);
  230.     end
  231.     local function ToggleJump()
  232.         jumpEnabled = not jumpEnabled;
  233.         local button = ButtonsFrame:FindFirstChild("High Jump (x3)Button");
  234.         if button then
  235.             button.BackgroundColor3 = (jumpEnabled and Color3.fromRGB(50, 255, 50)) or Color3.fromRGB(50, 50, 50);
  236.         end
  237.         if (Player.Character and Player.Character:FindFirstChild("Humanoid")) then
  238.             if jumpEnabled then
  239.                 Player.Character.Humanoid.JumpPower = originalJumpPower * 3;
  240.             else
  241.                 Player.Character.Humanoid.JumpPower = originalJumpPower;
  242.             end
  243.         end
  244.         Player.CharacterAdded:Connect(function(character)
  245.             character:WaitForChild("Humanoid");
  246.             if jumpEnabled then
  247.                 character.Humanoid.JumpPower = originalJumpPower * 3;
  248.             else
  249.                 character.Humanoid.JumpPower = originalJumpPower;
  250.             end
  251.         end);
  252.     end
  253.     local function ToggleRespawn()
  254.         respawnEnabled = not respawnEnabled;
  255.         local button = ButtonsFrame:FindFirstChild("Respawn at Death PosButton");
  256.         if button then
  257.             button.BackgroundColor3 = (respawnEnabled and Color3.fromRGB(50, 255, 50)) or Color3.fromRGB(50, 50, 50);
  258.         end
  259.         if respawnEnabled then
  260.             Player.CharacterAdded:Connect(function(character)
  261.                 local humanoid = character:WaitForChild("Humanoid");
  262.                 local hrp = character:WaitForChild("HumanoidRootPart");
  263.                 humanoid.Died:Connect(function()
  264.                     local deathPos = hrp.Position;
  265.                     character:WaitForChild("HumanoidRootPart", 10);
  266.                     if character:FindFirstChild("HumanoidRootPart") then
  267.                         character.HumanoidRootPart.CFrame = CFrame.new(deathPos);
  268.                     end
  269.                 end);
  270.             end);
  271.         end
  272.     end
  273.     CreateButton("Speed (x3)", ToggleSpeed);
  274.     CreateButton("High Jump (x3)", ToggleJump);
  275.     CreateButton("Respawn at Death Pos", ToggleRespawn);
  276.     local dragging;
  277.     local dragInput;
  278.     local dragStart;
  279.     local startPos;
  280.     local function update(input)
  281.         local delta = input.Position - dragStart;
  282.         MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y);
  283.     end
  284.     MainFrame.InputBegan:Connect(function(input)
  285.         if ((input.UserInputType == Enum.UserInputType.MouseButton1) or (input.UserInputType == Enum.UserInputType.Touch)) then
  286.             dragging = true;
  287.             dragStart = input.Position;
  288.             startPos = MainFrame.Position;
  289.             input.Changed:Connect(function()
  290.                 if (input.UserInputState == Enum.UserInputState.End) then
  291.                     dragging = false;
  292.                 end
  293.             end);
  294.         end
  295.     end);
  296.     MainFrame.InputChanged:Connect(function(input)
  297.         if ((input.UserInputType == Enum.UserInputType.MouseMovement) or (input.UserInputType == Enum.UserInputType.Touch)) then
  298.             dragInput = input;
  299.         end
  300.     end);
  301.     UIS.InputChanged:Connect(function(input)
  302.         if ((input == dragInput) and dragging) then
  303.             update(input);
  304.         end
  305.     end);
  306. end
  307. if isSupportedGame then
  308.     local ScreenGui = Instance.new("ScreenGui");
  309.     ScreenGui.Name = "ServerGUI";
  310.     ScreenGui.Parent = game:GetService("CoreGui");
  311.     local MainFrame = Instance.new("Frame");
  312.     MainFrame.Name = "MainFrame";
  313.     MainFrame.Size = UDim2.new(0, 300, 0, 350);
  314.     MainFrame.Position = UDim2.new(0.5, -150, 0.5, -175);
  315.     MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30);
  316.     MainFrame.BorderSizePixel = 0;
  317.     MainFrame.Active = true;
  318.     MainFrame.Draggable = true;
  319.     MainFrame.Parent = ScreenGui;
  320.     local Title = Instance.new("TextLabel");
  321.     Title.Name = "Title";
  322.     Title.Size = UDim2.new(1, 0, 0, 30);
  323.     Title.Position = UDim2.new(0, 0, 0, 0);
  324.     Title.BackgroundColor3 = Color3.fromRGB(20, 20, 20);
  325.     Title.TextColor3 = Color3.fromRGB(255, 255, 255);
  326.     Title.Text = "SERVERSIDE GUI";
  327.     Title.Font = Enum.Font.GothamBold;
  328.     Title.TextSize = 14;
  329.     Title.Parent = MainFrame;
  330.     local CloseButton = Instance.new("TextButton");
  331.     CloseButton.Name = "CloseButton";
  332.     CloseButton.Size = UDim2.new(0, 30, 0, 30);
  333.     CloseButton.Position = UDim2.new(1, -30, 0, 0);
  334.     CloseButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50);
  335.     CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255);
  336.     CloseButton.Text = "X";
  337.     CloseButton.Font = Enum.Font.GothamBold;
  338.     CloseButton.TextSize = 14;
  339.     CloseButton.Parent = MainFrame;
  340.     CloseButton.MouseButton1Click:Connect(function()
  341.         ScreenGui:Destroy();
  342.     end);
  343.     local ButtonsFrame = Instance.new("Frame");
  344.     ButtonsFrame.Name = "ButtonsFrame";
  345.     ButtonsFrame.Size = UDim2.new(1, -20, 1, -50);
  346.     ButtonsFrame.Position = UDim2.new(0, 10, 0, 40);
  347.     ButtonsFrame.BackgroundTransparency = 1;
  348.     ButtonsFrame.Parent = MainFrame;
  349.     local UIListLayout = Instance.new("UIListLayout");
  350.     UIListLayout.Padding = UDim.new(0, 10);
  351.     UIListLayout.Parent = ButtonsFrame;
  352.     local function CreateButton(text, callback)
  353.         local Button = Instance.new("TextButton");
  354.         Button.Name = text .. "Button";
  355.         Button.Size = UDim2.new(1, 0, 0, 30);
  356.         Button.BackgroundColor3 = Color3.fromRGB(50, 50, 50);
  357.         Button.TextColor3 = Color3.fromRGB(255, 255, 255);
  358.         Button.Text = text;
  359.         Button.Font = Enum.Font.Gotham;
  360.         Button.TextSize = 12;
  361.         Button.Parent = ButtonsFrame;
  362.         Button.MouseButton1Click:Connect(callback);
  363.         return Button;
  364.     end
  365.     local function SkipEnd()
  366.         local args = {[1]="a=Instance.new('Model',workspace)a.Name='yYdWzqdLNUYkrjwPDFkvo'"};
  367.         game:GetService("ReplicatedStorage").Events.SkipEndEvent:FireServer(unpack(args));
  368.     end
  369.     local function KillAll()
  370.         local args = {[1]="a=Instance.new('Model',workspace)a.Name='wsUdkiJlFXMMPddjqggWkdxbWKX'"};
  371.         game:GetService("ReplicatedStorage").Events.KillEvent:FireServer(unpack(args));
  372.     end
  373.     local webSlingTarget = "All";
  374.     local webSlingEnabled = false;
  375.     local webSlingLoop = nil;
  376.     local crashLoop = nil;
  377.     local crashEnabled = false;
  378.     local function FindPlayerByName(partialName)
  379.         partialName = partialName:lower();
  380.         for _, player in ipairs(game:GetService("Players"):GetPlayers()) do
  381.             if player.Name:lower():find(partialName) then
  382.                 return player;
  383.             end
  384.         end
  385.         return nil;
  386.     end
  387.     local function ToggleWebSlingTarget()
  388.         local inputGui = Instance.new("ScreenGui");
  389.         inputGui.Name = "WebSlingInputGUI";
  390.         inputGui.Parent = game:GetService("CoreGui");
  391.         local inputFrame = Instance.new("Frame");
  392.         inputFrame.Name = "InputFrame";
  393.         inputFrame.Size = UDim2.new(0, 250, 0, 150);
  394.         inputFrame.Position = UDim2.new(0.5, -125, 0.5, -75);
  395.         inputFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30);
  396.         inputFrame.BorderSizePixel = 0;
  397.         inputFrame.Active = true;
  398.         inputFrame.Draggable = true;
  399.         inputFrame.Parent = inputGui;
  400.         local title = Instance.new("TextLabel");
  401.         title.Name = "Title";
  402.         title.Size = UDim2.new(1, 0, 0, 30);
  403.         title.Position = UDim2.new(0, 0, 0, 0);
  404.         title.BackgroundColor3 = Color3.fromRGB(20, 20, 20);
  405.         title.TextColor3 = Color3.fromRGB(255, 255, 255);
  406.         title.Text = "Enter Player Name (partial)";
  407.         title.Font = Enum.Font.GothamBold;
  408.         title.TextSize = 14;
  409.         title.Parent = inputFrame;
  410.         local inputBox = Instance.new("TextBox");
  411.         inputBox.Name = "InputBox";
  412.         inputBox.Size = UDim2.new(1, -20, 0, 30);
  413.         inputBox.Position = UDim2.new(0, 10, 0, 40);
  414.         inputBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50);
  415.         inputBox.TextColor3 = Color3.fromRGB(255, 255, 255);
  416.         inputBox.Text = "";
  417.         inputBox.Font = Enum.Font.Gotham;
  418.         inputBox.TextSize = 12;
  419.         inputBox.PlaceholderText = "Enter partial name or 'all'";
  420.         inputBox.Parent = inputFrame;
  421.         local buttonsFrame = Instance.new("Frame");
  422.         buttonsFrame.Name = "ButtonsFrame";
  423.         buttonsFrame.Size = UDim2.new(1, -20, 0, 30);
  424.         buttonsFrame.Position = UDim2.new(0, 10, 1, -40);
  425.         buttonsFrame.BackgroundTransparency = 1;
  426.         buttonsFrame.Parent = inputFrame;
  427.         local listLayout = Instance.new("UIListLayout");
  428.         listLayout.FillDirection = Enum.FillDirection.Horizontal;
  429.         listLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center;
  430.         listLayout.Padding = UDim.new(0, 10);
  431.         listLayout.Parent = buttonsFrame;
  432.         local confirmButton = Instance.new("TextButton");
  433.         confirmButton.Name = "ConfirmButton";
  434.         confirmButton.Size = UDim2.new(0.5, -10, 1, 0);
  435.         confirmButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50);
  436.         confirmButton.TextColor3 = Color3.fromRGB(255, 255, 255);
  437.         confirmButton.Text = "Confirm";
  438.         confirmButton.Font = Enum.Font.Gotham;
  439.         confirmButton.TextSize = 12;
  440.         confirmButton.Parent = buttonsFrame;
  441.         local cancelButton = Instance.new("TextButton");
  442.         cancelButton.Name = "CancelButton";
  443.         cancelButton.Size = UDim2.new(0.5, -10, 1, 0);
  444.         cancelButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50);
  445.         cancelButton.TextColor3 = Color3.fromRGB(255, 255, 255);
  446.         cancelButton.Text = "Cancel";
  447.         cancelButton.Font = Enum.Font.Gotham;
  448.         cancelButton.TextSize = 12;
  449.         cancelButton.Parent = buttonsFrame;
  450.         confirmButton.MouseButton1Click:Connect(function()
  451.             local inputText = inputBox.Text:lower();
  452.             if ((inputText == "all") or (inputText == "")) then
  453.                 webSlingTarget = "All";
  454.             else
  455.                 local player = FindPlayerByName(inputText);
  456.                 if player then
  457.                     webSlingTarget = player.Name;
  458.                 else
  459.                     webSlingTarget = "All";
  460.                 end
  461.             end
  462.             inputGui:Destroy();
  463.             local button = ButtonsFrame:FindFirstChild("Web Sling TargetButton");
  464.             if button then
  465.                 button.Text = "Web Sling Target: " .. webSlingTarget;
  466.             end
  467.         end);
  468.         cancelButton.MouseButton1Click:Connect(function()
  469.             inputGui:Destroy();
  470.         end);
  471.     end
  472.     local function ToggleWebSling()
  473.         webSlingEnabled = not webSlingEnabled;
  474.         local button = ButtonsFrame:FindFirstChild("Web SlingButton");
  475.         if button then
  476.             button.BackgroundColor3 = (webSlingEnabled and Color3.fromRGB(50, 255, 50)) or Color3.fromRGB(50, 50, 50);
  477.         end
  478.         if webSlingEnabled then
  479.             webSlingLoop = game:GetService("RunService").Heartbeat:Connect(function()
  480.                 pcall(function()
  481.                     local character = Player.Character;
  482.                     if character then
  483.                         local tool = character:FindFirstChild("web sling") or Player.Backpack:FindFirstChild("web sling");
  484.                         if tool then
  485.                             tool.Parent = character;
  486.                             local target = nil;
  487.                             if (webSlingTarget ~= "All") then
  488.                                 target = game:GetService("Players"):FindFirstChild(webSlingTarget);
  489.                             end
  490.                             if (target and target.Character and target.Character:FindFirstChild("HumanoidRootPart")) then
  491.                                 local args = {[1]=1,[2]=target.Character.HumanoidRootPart.Position};
  492.                                 tool.UserInput:FireServer(unpack(args));
  493.                             elseif (webSlingTarget == "All") then
  494.                                 for _, player in ipairs(game:GetService("Players"):GetPlayers()) do
  495.                                     if ((player ~= Player) and player.Character and player.Character:FindFirstChild("HumanoidRootPart")) then
  496.                                         local args = {[1]=1,[2]=player.Character.HumanoidRootPart.Position};
  497.                                         tool.UserInput:FireServer(unpack(args));
  498.                                     end
  499.                                 end
  500.                             end
  501.                         end
  502.                     end
  503.                 end);
  504.             end);
  505.         elseif webSlingLoop then
  506.             webSlingLoop:Disconnect();
  507.             webSlingLoop = nil;
  508.         end
  509.     end
  510.     local function NewCrashServer()
  511.         crashEnabled = not crashEnabled;
  512.         local button = ButtonsFrame:FindFirstChild("Crash ServerButton");
  513.         if button then
  514.             button.BackgroundColor3 = (crashEnabled and Color3.fromRGB(255, 50, 50)) or Color3.fromRGB(50, 50, 50);
  515.         end
  516.         if crashEnabled then
  517.             KillAll();
  518.             crashLoop = game:GetService("RunService").Heartbeat:Connect(function()
  519.                 if not crashEnabled then
  520.                     return;
  521.                 end
  522.                 if (#game:GetService("Players"):GetPlayers() <= 1) then
  523.                     crashEnabled = false;
  524.                     if button then
  525.                         button.BackgroundColor3 = Color3.fromRGB(50, 50, 50);
  526.                     end
  527.                     return;
  528.                 end
  529.                 KillAll();
  530.                 local vulnerableNumbers = {math.huge,-math.huge,NaN,(math.huge * 0),(1 / 0),(-1 / 0)};
  531.                 pcall(function()
  532.                     local character = Player.Character;
  533.                     if character then
  534.                         local tool = character:FindFirstChild("web sling") or Player.Backpack:FindFirstChild("web sling");
  535.                         if tool then
  536.                             tool.Parent = character;
  537.                             for _, num in ipairs(vulnerableNumbers) do
  538.                                 local args = {[1]=num,[2]=Vector3.new(num, num, num)};
  539.                                 tool.UserInput:FireServer(unpack(args));
  540.                             end
  541.                         end
  542.                     end
  543.                 end);
  544.             end);
  545.         elseif crashLoop then
  546.             crashLoop:Disconnect();
  547.             crashLoop = nil;
  548.         end
  549.     end
  550.     local loopKillEnabled = false;
  551.     local lastDeathPositions = {};
  552.     local loopKillConnection = nil;
  553.     local killLoop = nil;
  554.     local function LoopKillAll()
  555.         loopKillEnabled = not loopKillEnabled;
  556.         local button = ButtonsFrame:FindFirstChild("Loop Kill AllButton");
  557.         if button then
  558.             button.BackgroundColor3 = (loopKillEnabled and Color3.fromRGB(255, 50, 50)) or Color3.fromRGB(50, 50, 50);
  559.         end
  560.         if loopKillEnabled then
  561.             for _, player in ipairs(game:GetService("Players"):GetPlayers()) do
  562.                 if (player.Character and player.Character:FindFirstChild("HumanoidRootPart")) then
  563.                     lastDeathPositions[player.Name] = player.Character.HumanoidRootPart.Position;
  564.                 end
  565.             end
  566.             KillAll();
  567.             killLoop = game:GetService("RunService").Heartbeat:Connect(function()
  568.                 if not loopKillEnabled then
  569.                     return;
  570.                 end
  571.                 KillAll();
  572.                 wait(2.5);
  573.                 for _, player in ipairs(game:GetService("Players"):GetPlayers()) do
  574.                     if lastDeathPositions[player.Name] then
  575.                         pcall(function()
  576.                             if (player.Character and player.Character:FindFirstChild("HumanoidRootPart")) then
  577.                                 player.Character.HumanoidRootPart.CFrame = CFrame.new(lastDeathPositions[player.Name]);
  578.                             end
  579.                         end);
  580.                     end
  581.                 end
  582.             end);
  583.             loopKillConnection = game:GetService("Players").PlayerAdded:Connect(function(player)
  584.                 player.CharacterAdded:Connect(function(character)
  585.                     character:WaitForChild("Humanoid").Died:Connect(function()
  586.                         if character:FindFirstChild("HumanoidRootPart") then
  587.                             lastDeathPositions[player.Name] = character.HumanoidRootPart.Position;
  588.                         end
  589.                     end);
  590.                 end);
  591.             end);
  592.             for _, player in ipairs(game:GetService("Players"):GetPlayers()) do
  593.                 if player.Character then
  594.                     player.Character:WaitForChild("Humanoid").Died:Connect(function()
  595.                         if (player.Character and player.Character:FindFirstChild("HumanoidRootPart")) then
  596.                             lastDeathPositions[player.Name] = player.Character.HumanoidRootPart.Position;
  597.                         end
  598.                     end);
  599.                 end
  600.                 player.CharacterAdded:Connect(function(character)
  601.                     character:WaitForChild("Humanoid").Died:Connect(function()
  602.                         if character:FindFirstChild("HumanoidRootPart") then
  603.                             lastDeathPositions[player.Name] = character.HumanoidRootPart.Position;
  604.                         end
  605.                     end);
  606.                 end);
  607.             end
  608.         else
  609.             if killLoop then
  610.                 killLoop:Disconnect();
  611.                 killLoop = nil;
  612.             end
  613.             if loopKillConnection then
  614.                 loopKillConnection:Disconnect();
  615.                 loopKillConnection = nil;
  616.             end
  617.             lastDeathPositions = {};
  618.         end
  619.     end
  620.     local platform = nil;
  621.     local platformEnabled = false;
  622.     local platformConnection = nil;
  623.     local platformDescentSpeed = 0.5;
  624.     local function ToggleFlyingPlatform()
  625.         platformEnabled = not platformEnabled;
  626.         local button = ButtonsFrame:FindFirstChild("Flying PlatformButton");
  627.         if button then
  628.             button.BackgroundColor3 = (platformEnabled and Color3.fromRGB(50, 255, 50)) or Color3.fromRGB(50, 50, 50);
  629.         end
  630.         if platformEnabled then
  631.             platform = Instance.new("Part");
  632.             platform.Name = "FlyingPlatform";
  633.             platform.Size = Vector3.new(15, 1, 15);
  634.             platform.Anchored = true;
  635.             platform.CanCollide = true;
  636.             platform.Transparency = 0.7;
  637.             platform.Material = Enum.Material.Neon;
  638.             platform.Color = Color3.fromRGB(100, 200, 255);
  639.             platform.Parent = workspace;
  640.             if (Player.Character and Player.Character:FindFirstChild("HumanoidRootPart")) then
  641.                 local hrp = Player.Character.HumanoidRootPart;
  642.                 platform.Position = hrp.Position - Vector3.new(0, 4, 0);
  643.                 platform.Orientation = Vector3.new(0, hrp.Orientation.Y, 0);
  644.             end
  645.             platformConnection = game:GetService("RunService").Heartbeat:Connect(function(dt)
  646.                 if (not platform or not Player.Character or not Player.Character:FindFirstChild("HumanoidRootPart")) then
  647.                     return;
  648.                 end
  649.                 local hrp = Player.Character.HumanoidRootPart;
  650.                 local currentPos = platform.Position;
  651.                 local targetY = hrp.Position.Y - 4;
  652.                 if ((Player.Character.Humanoid:GetState() == Enum.HumanoidStateType.Running) or (Player.Character.Humanoid:GetState() == Enum.HumanoidStateType.RunningNoPhysics) or (Player.Character.Humanoid:GetState() == Enum.HumanoidStateType.GettingUp) or (Player.Character.Humanoid:GetState() == Enum.HumanoidStateType.Landed)) then
  653.                     targetY = currentPos.Y - (platformDescentSpeed * dt);
  654.                 else
  655.                     targetY = math.max(currentPos.Y, hrp.Position.Y - 4);
  656.                 end
  657.                 local targetX = hrp.Position.X;
  658.                 local targetZ = hrp.Position.Z;
  659.                 local newX = currentPos.X + ((targetX - currentPos.X) * 0.1);
  660.                 local newZ = currentPos.Z + ((targetZ - currentPos.Z) * 0.1);
  661.                 platform.Position = Vector3.new(newX, targetY, newZ);
  662.                 platform.Orientation = Vector3.new(0, hrp.Orientation.Y, 0);
  663.             end);
  664.         else
  665.             if platform then
  666.                 platform:Destroy();
  667.                 platform = nil;
  668.             end
  669.             if platformConnection then
  670.                 platformConnection:Disconnect();
  671.                 platformConnection = nil;
  672.             end
  673.         end
  674.     end
  675.     CreateButton("Skip End", SkipEnd);
  676.     CreateButton("Kill All", KillAll);
  677.     CreateButton("Loop Kill All", LoopKillAll);
  678.     CreateButton("Flying Platform", ToggleFlyingPlatform);
  679.     CreateButton("Web Sling", ToggleWebSling);
  680.     CreateButton("Web Sling Target: All", ToggleWebSlingTarget);
  681.     CreateButton("Crash Server", NewCrashServer);
  682.     CreateButton("Open Client GUI", CreateClientUI);
  683.     local dragging;
  684.     local dragInput;
  685.     local dragStart;
  686.     local startPos;
  687.     local function update(input)
  688.         local delta = input.Position - dragStart;
  689.         MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y);
  690.     end
  691.     MainFrame.InputBegan:Connect(function(input)
  692.         if ((input.UserInputType == Enum.UserInputType.MouseButton1) or (input.UserInputType == Enum.UserInputType.Touch)) then
  693.             dragging = true;
  694.             dragStart = input.Position;
  695.             startPos = MainFrame.Position;
  696.             input.Changed:Connect(function()
  697.                 if (input.UserInputState == Enum.UserInputState.End) then
  698.                     dragging = false;
  699.                 end
  700.             end);
  701.         end
  702.     end);
  703.     MainFrame.InputChanged:Connect(function(input)
  704.         if ((input.UserInputType == Enum.UserInputType.MouseMovement) or (input.UserInputType == Enum.UserInputType.Touch)) then
  705.             dragInput = input;
  706.         end
  707.     end);
  708.     UIS.InputChanged:Connect(function(input)
  709.         if ((input == dragInput) and dragging) then
  710.             update(input);
  711.         end
  712.     end);
  713. elseif (hasSkipEndEvent and hasKillEvent) then
  714.     CreateMessageBox("Script Detected", "This game might support this script. Do you want to try running it?", {{text="Yes",callback=function()
  715.     end},{text="No",callback=function()
  716.     end}});
  717. else
  718.     CreateMessageBox("Unsupported Game", "This game is not supported by this script. Would you like to teleport to a supported game?", {{text="Yes",callback=function()
  719.         CreateGameSelectionUI();
  720.     end},{text="No",callback=function()
  721.     end}});
  722. end
Tags: serverside
Advertisement
Add Comment
Please, Sign In to add comment