Sword Simulator Script | AUTO HIT

Created by magnet#0001

Features:

  • AUTO HIT
  •  
  • DEV NOTES:
  • Press f to toggle it on & off & stay near the enemy you wanna hit, shouldn’t make ur ping go high, if it does u may as well just rejoin.
local plr = game.Players.LocalPlayer
local hit = game.ReplicatedStorage.Remotes.Gameplay.FireHit

local rs = game:GetService("RunService")
local uis = game:GetService("UserInputService")

local toggled = false
local db = false

game.StarterGui:SetCore("SendNotification", {
   Title = "Notification",
   Text = "Kill All Disabled, F to toggle",
   Duration = 3
})

uis.InputBegan:Connect(function(key, gpe)
   if not gpe and key.KeyCode == Enum.KeyCode.F then
       plr.PlayerGui.CoinEffects.Enabled = false
       
       if not toggled then
           toggled = true
           
           game.StarterGui:SetCore("SendNotification", {
               Title = "Notification",
               Text = "Kill All Enabled",
               Duration = 2
           })
       elseif toggled then
           toggled = false
           
           game.StarterGui:SetCore("SendNotification", {
               Title = "Notification",
               Text = "Kill All Disabled",
               Duration = 2
           })
       end
   end
end)

rs.Stepped:Connect(function()
   if toggled then
       for i,v in pairs(workspace.Mobs:GetDescendants()) do
           if not db and v:IsA("Model") and v:FindFirstChild("Humanoid") and v.Humanoid.Health > 0 and v:FindFirstChild("HumanoidRootPart") then
               db = true
               hit:FireServer(v, v.HumanoidRootPart.Position)
               task.wait()
               db = false
           end
       end
   end
end)

ENJOY!

Warning: DO NOT DOWNLOAD anything from this page, you’re only here to copy the script!

More Scripts!

TOP 10 TRENDING SCRIPTS