
KeylessUniversal

--[[
WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
]]
--// Setting \\--
local range = 15 -- The default range for the script
local TogglePreciseRange = Enum.KeyCode.BackSlash -- Change the "BackSlash" to the key you want to toggle precise range
local DoNotDisturb = false -- If it's on true, the script will notify you if your range has been changed; if it's false then it doesn't notify.
local PreciseRange = false -- Keep this off if you don't want your range value to have numbers that go into the 0.01's.
--// Variable \\--
local player = game:GetService("Players").LocalPlayer
local UIS = game:GetService("UserInputService")
local CoreGui = game:GetService("StarterGui")
--// GUI Creation \\--
local gui = Instance.new("ScreenGui")
gui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 200, 0, 100)
frame.Position = UDim2.new(0, 20, 0, 20)
frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
frame.BorderSizePixel = 2
frame.Parent = gui
local label = Instance.new("TextLabel")
label.Size = UDim2.new(1, 0, 0.5, 0)
label.Position = UDim2.new(0, 0, 0, 0)
label.Text = "Enter Range:"
label.TextColor3 = Color3.new(1, 1, 1)
label.TextScaled = true
label.Parent = frame
local inputBox = Instance.new("TextBox")
inputBox.Size = UDim2.new(1, -20, 0.4, 0)
inputBox.Position = UDim2.new(0, 10, 0.6, 0)
inputBox.PlaceholderText = "Enter range..."
inputBox.Parent = frame
local updateButton = Instance.new("TextButton")
updateButton.Size = UDim2.new(0.5, 0, 0.3, 0)
updateButton.Position = UDim2.new(0.25, 0, 0.85, 0)
updateButton.Text = "Update Range"
updateButton.BackgroundColor3 = Color3.fromRGB(0, 120, 215)
updateButton.TextColor3 = Color3.new(1, 1, 1)
updateButton.Parent = frame
--// GUI Functionality \\--
updateButton.MouseButton1Click:Connect(function()
local newRange = tonumber(inputBox.Text)
if newRange then
range = newRange
if DoNotDisturb == false then
CoreGui:SetCore("SendNotification", {Title = "Notification", Text = "The range was set to " .. range})
end
else
warn("Invalid range input. Please enter a valid number.")
end
end)
--// Keybind Functions \\--
UIS.InputBegan:Connect(function(input)
if input.KeyCode == TogglePreciseRange then
PreciseRange = not PreciseRange
if DoNotDisturb == false then
CoreGui:SetCore("SendNotification", {Title = "Notification", Text = "Precise range mode toggled " .. (PreciseRange and "on" or "off")})
end
end
end)
--// Script \\--
game:GetService("RunService").RenderStepped:Connect(function()
local p = game.Players:GetPlayers()
for i = 2, #p do
local v = p[i].Character
if v and v:FindFirstChild("Humanoid") and v.Humanoid.Health > 0 and v:FindFirstChild("HumanoidRootPart") and player:DistanceFromCharacter(v.HumanoidRootPart.Position) <= range then
local tool = player.Character and player.Character:FindFirstChildOfClass("Tool")
if tool and tool:FindFirstChild("Handle") then
tool:Activate()
for _, part in ipairs(v:GetChildren()) do
if part:IsA("BasePart") then
firetouchinterest(tool.Handle, part, 0)
firetouchinterest(tool.Handle, part, 1)
end
end
end
end
end
end)
if DoNotDisturb == false then
CoreGui:SetCore("SendNotification", {Title = "Script Load", Text = "The script loaded successfully!"})
endNo comments yet for this script.



