--BROUGHT TO YOU BY RobloxScripter.com!--
local MAX_DISTANCE = 25 -- MAX SETTING: 25
local SPEED = 0.5 -- Lower: Faster, but a higher chance of being kicked
MAX_DISTANCE = math.clamp(MAX_DISTANCE, 0, 25)
-- Blehhh variables
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer or Players:GetPropertyChangedSignal("LocalPlayer"):Wait()
local Systems = ReplicatedStorage:WaitForChild("Systems")
local Combat = Systems:WaitForChild("Combat")
local PlayerAttack = Combat:WaitForChild("PlayerAttack")
local Pickup = Systems:WaitForChild("Drops"):WaitForChild("Pickup")
local Drops = ReplicatedStorage:WaitForChild("Drops")
-- Funcs obviously
local function InRange(Object)
assert(Object:IsA("Model") or Object:IsA("BasePart"), "ok retard now it's broken")
local Position = Object:IsA("Model") and Object:GetPivot().Position or Object.Position
local Character = Player.Character
if not Character then return false end
return (Position - Character:GetPivot().Position).Magnitude 0 and Cooldown > SPEED then
Attack(v)
LastSwing = NewTick
end
end
end