TEXT 45
Vampire Fighters Script By venuslock on 15th September 2024 10:00:10 AM
  1. --vampire fighters
  2. getgenv().IsEnabled = true
  3.  
  4. local Players = game:GetService("Players")
  5. local Client = Players.LocalPlayer
  6. local Event = game:GetService("ReplicatedStorage").Remotes.WeaponConnection
  7.  
  8. while task.wait(0.05) and IsEnabled do
  9.     pcall(function()
  10.         for _, Player in ipairs(Players:GetPlayers()) do
  11.             if Player == Client then continue end
  12.             if not Client.Character then continue end
  13.            
  14.             local Character = Player.Character
  15.             if not Character then continue end
  16.            
  17.             local Part = Character.PrimaryPart
  18.             local Humanoid = Character:FindFirstChild("Humanoid")
  19.            
  20.             if not Humanoid then continue end
  21.             if not Part then continue end
  22.            
  23.             local Weapon = Client.Character:FindFirstChildWhichIsA("Tool") or Client.Backpack:FindFirstChildWhichIsA("Tool")
  24.            
  25.             Event:FireServer(Weapon.Name, "OnHit", Part, Character.Humanoid, {
  26.                 ["Instance"] = Part,
  27.                 ["Material"] = Enum.Material.Plastic,
  28.                 ["Normal"] = Part.Position,
  29.                 ["Position"] = Part.Position
  30.             }, false)
  31.         end
  32.     end)
  33. end

Texbin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.