ExamV1

Fortnite of Arabia Roblox Script

Feb 20th, 2023
1,478
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.94 KB | None | 0 0
  1. --Kill all players script GUI button
  2. --https://www.roblox.com/games/8721702870/unnamed
  3.  
  4.  
  5.  
  6. -- Create the ScreenGui and TextButton
  7. local gui = Instance.new("ScreenGui")
  8. local button = Instance.new("TextButton")
  9.  
  10. gui.Name = "RocketLauncherScriptGui"
  11. gui.Parent = game.CoreGui
  12.  
  13. button.Name = "RocketLauncherScriptButton"
  14. button.Parent = gui
  15. button.Size = UDim2.new(0, 200, 0, 50)
  16. button.Position = UDim2.new(0.5, -100, 0.5, -25)
  17. button.Text = "Kill all players"
  18. button.TextColor3 = Color3.new(1, 1, 1)
  19. button.BackgroundColor3 = Color3.new(0, 0, 0)
  20. button.BorderSizePixel = 0
  21.  
  22. -- Define the function to damage players
  23. local function damagePlayers()
  24.     local players = game:GetService("Players"):GetPlayers()
  25.  
  26.     for i, player in ipairs(players) do
  27.         if player.Name ~= game:GetService("Players").LocalPlayer.Name then
  28.             local args = {
  29.                 [1] = game:GetService("Players"):WaitForChild(game:GetService("Players").LocalPlayer.Name):WaitForChild("Backpack"):WaitForChild("Rocket Launcher"),
  30.                 [2] = {
  31.                     ["p"] = Vector3.new(18.95905303955078, 149.38900756835938, 262.246337890625),
  32.                     ["pid"] = 1,
  33.                     ["part"] = player.Character.HumanoidRootPart,
  34.                     ["d"] = 158.49783325195312,
  35.                     ["maxDist"] = 73.0173110961914,
  36.                     ["h"] = player.Character.Humanoid,
  37.                     ["m"] = Enum.Material.Plastic,
  38.                     ["sid"] = 3,
  39.                     ["t"] = 0.4634176031998304,
  40.                     ["n"] = Vector3.new(0.8189706206321716, 0.1616213023662567, -0.5506048798561096)
  41.                 }
  42.             }
  43.  
  44.             game:GetService("ReplicatedStorage"):WaitForChild("WeaponsSystem"):WaitForChild("Network"):WaitForChild("WeaponHit"):FireServer(unpack(args))
  45.         end
  46.     end
  47. end
  48.  
  49. -- Connect the button to the damagePlayers function
  50. button.MouseButton1Click:Connect(damagePlayers)
  51.  
Tags: Roblox Script Gui
Advertisement
Add Comment
Please, Sign In to add comment