The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
BIG Paintball! kill all script script pastebin roblox
By BIG Paintball! on 2024-09-19 08:00 am | Syntax: LUA | Views: 9



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1.  local m = getrawmetatable(game)
  2. local runservice = game:GetService("RunService")
  3. local uis = game:GetService("UserInputService")
  4. setreadonly(m,false)
  5.  
  6. local on = false
  7. local namecall = m.__namecall
  8.  
  9. local function kill(code,player)
  10.     if player and code then
  11.         local A_1 =
  12.         {
  13.                 [1] =
  14.             {
  15.                 [1] = player.Character.Humanoid,
  16.                 [2] = code,
  17.                 [3] = 170,
  18.                 [4] = player.Character.Head.Position,
  19.                 [5] = false,
  20.                 [6] = false,
  21.                 [7] = false
  22.             },
  23.                 [2] =
  24.             {
  25.                 [1] = false,
  26.                 [2] = false,
  27.                 [3] = false,
  28.                 [4] = false,
  29.                 [5] = false,
  30.                 [6] = 2,
  31.                 [7] = 2
  32.             }
  33.         }
  34.         local Event = game:GetService("Workspace")["__THINGS"]["__REMOTES"]["do damage"]
  35.         Event:FireServer(A_1)
  36.     end
  37. end
  38.  
  39. local function getplayer()
  40.     local f = {}
  41.     for _,player in pairs(game:GetService("Players"):GetPlayers()) do
  42.         if player.Character and player ~= game:GetService("Players").LocalPlayer then
  43.             local c = false
  44.             if player.Neutral then
  45.                 c = true
  46.             elseif player.Team ~= game:GetService("Players").LocalPlayer.Team then
  47.                 c = true
  48.             end
  49.             if c and player.Character:FindFirstChild("Humanoid") and not player.Character:FindFirstChildOfClass("ForceField") and player.Character:FindFirstChild("Head") then
  50.                 f[#f+1] = player
  51.             end
  52.         end
  53.     end
  54.     return f
  55. end
  56.  
  57. local function namecallfunction(self,...)
  58.     local args = {...}
  59.     if getnamecallmethod() == "FireServer" then
  60.         if args[1] then
  61.             if args[1][1] then
  62.                 if #args[1][1] == 3 then
  63.                     local f = getplayer()
  64.                     kill(args[1][1][2],f[math.random(1,#f)])
  65.                 end
  66.             end
  67.         end
  68.     end
  69.     return namecall(self,unpack(args))
  70. end
  71.  
  72. runservice.RenderStepped:Connect(function()
  73.     if on then
  74.         if validfgwindow() then
  75.         else
  76.             on = false
  77.             warn("Mouse clicked outside of Roblox")
  78.         end
  79.     end
  80. end)
  81.  
  82. uis.InputBegan:Connect(function(input)
  83.     if input.KeyCode == Enum.KeyCode.E then
  84.         if on then on = false else on = true end
  85.         warn(on == true and "On" or on == false and "Off")
  86.     end
  87. end)
  88.  
  89. m.__namecall = namecallfunction
  90. setreadonly(m,true)