local active = true
local trueActive = true
local reachType = "Sphere"
local dmgEnabled = true
local visualizerEnabled = false
local visualizer = [Link]("Part")
[Link] = [Link]()
[Link] = 0.6
[Link] = true
[Link] = false
[Link] = [Link](0.5,0.5,0.5)
[Link] = [Link]
[Link] = [Link]
local ScreenGui = [Link]("ScreenGui")
local Frame = [Link]("Frame")
local TextLabel = [Link]("TextLabel")
local TextBox = [Link]("TextBox")
local TextLabel_2 = [Link]("TextLabel")
local TextLabel_3 = [Link]("TextLabel")
local TextLabel_4 = [Link]("TextLabel")
local TextButton = [Link]("TextButton")
local Frame_2 = [Link]("Frame")
local Frame_3 = [Link]("Frame")
local Frame_4 = [Link]("Frame")
local Frame_5 = [Link]("Frame")
local TextButton_2 = [Link]("TextButton")
--Properties:
[Link] = [Link]
[Link] = 999999999
[Link] = false
[Link] = ScreenGui
[Link] = [Link](0, 0.5)
Frame.BackgroundColor3 = [Link](45, 45, 45)
[Link] = 0
Frame.BorderColor3 = [Link](0, 0, 0)
[Link] = 4
[Link] = [Link](0, 0, 0.600000024, 0)
[Link] = [Link](0.150000006, 0, 0.300000012, 0)
[Link] = Frame
TextLabel.BackgroundColor3 = [Link](255, 255, 255)
[Link] = 1.000
[Link] = [Link](0.600000024, 0, 0.200000003, 0)
[Link] = [Link]
[Link] = "Reach:"
TextLabel.TextColor3 = [Link](255,255, 255)
[Link] = true
[Link] = 14.000
[Link] = true
[Link] = Frame
TextBox.BackgroundColor3 = [Link](255, 255, 255)
[Link] = 1.000
[Link] = [Link](0.600000024, 0, 0, 0)
[Link] = [Link](0.400000006, 0, 0.200000003, 0)
[Link] = [Link]
[Link] = "3.5"
TextBox.TextColor3 = [Link](0,0,255)
[Link] = true
[Link] = 14.000
[Link] = true
TextLabel_2.Parent = Frame
TextLabel_2.BackgroundColor3 = [Link](255, 255, 255)
TextLabel_2.BackgroundTransparency = 1.000
TextLabel_2.Position = [Link](0, 0, 0.200000003, 0)
TextLabel_2.Size = [Link](0.600000024, 0, 0.200000003, 0)
TextLabel_2.Font = [Link]
TextLabel_2.Text = "Shape:"
TextLabel_2.TextColor3 = [Link](255, 255, 255)
TextLabel_2.TextScaled = true
TextLabel_2.TextSize = 14.000
TextLabel_2.TextWrapped = true
TextLabel_3.Parent = Frame
TextLabel_3.BackgroundColor3 = [Link](255, 255, 255)
TextLabel_3.BackgroundTransparency = 1.000
TextLabel_3.Position = [Link](0, 0, 0.400000006, 0)
TextLabel_3.Size = [Link](0.600000024, 0, 0.200000003, 0)
TextLabel_3.Font = [Link]
TextLabel_3.Text = "Damage:"
TextLabel_3.TextColor3 = [Link](255, 255, 255)
TextLabel_3.TextScaled = true
TextLabel_3.TextSize = 14.000
TextLabel_3.TextWrapped = true
TextLabel_4.Parent = Frame
TextLabel_4.BackgroundColor3 = [Link](255, 255, 255)
TextLabel_4.BackgroundTransparency = 1.000
TextLabel_4.Position = [Link](0, 0, 0.600000024, 0)
TextLabel_4.Size = [Link](0.600000024, 0, 0.200000003, 0)
TextLabel_4.Font = [Link]
TextLabel_4.Text = "Visualizer:"
TextLabel_4.TextColor3 = [Link](255, 255, 255)
TextLabel_4.TextScaled = true
TextLabel_4.TextSize = 14.000
TextLabel_4.TextWrapped = true
[Link] = Frame
[Link] = [Link](0, 1)
TextButton.BackgroundColor3 = [Link](255, 255, 255)
[Link] = 1.000
[Link] = [Link](0, 0, 1, 0)
[Link] = [Link](1, 0, 0.150000006, 0)
[Link] = [Link]
[Link] = "Closet X (R to close GUI)"
TextButton.TextColor3 = [Link](0, 0, 255)
[Link] = true
[Link] = 14.000
[Link] = true
Frame_2.Parent = Frame
Frame_2.Active = true
Frame_2.AnchorPoint = [Link](0, 0.5)
Frame_2.BackgroundColor3 = [Link](31, 31, 31)
Frame_2.BorderSizePixel = 0
Frame_2.Position = [Link](0.725000024, 0, 0.699999988, 0)
Frame_2.Size = [Link](0, 25, 0, 25)
Frame_2.ZIndex = 5
Frame_3.Parent = Frame_2
Frame_3.AnchorPoint = [Link](0.5, 0.5)
Frame_3.BackgroundColor3 = [Link](0,0,255)
Frame_3.BorderSizePixel = 0
Frame_3.LayoutOrder = 1
Frame_3.Position = [Link](0.5, 0, 0.5, 0)
Frame_4.Parent = Frame
Frame_4.Active = true
Frame_4.AnchorPoint = [Link](0, 0.5)
Frame_4.BackgroundColor3 = [Link](31, 31, 31)
Frame_4.BorderSizePixel = 0
Frame_4.Position = [Link](0.725000024, 0, 0.5, 0)
Frame_4.Size = [Link](0, 25, 0, 25)
Frame_4.ZIndex = 5
Frame_5.Parent = Frame_4
Frame_5.AnchorPoint = [Link](0.5, 0.5)
Frame_5.BackgroundColor3 = [Link](0,0,255)
Frame_5.BorderSizePixel = 0
Frame_5.LayoutOrder = 1
Frame_5.Position = [Link](0.5, 0, 0.5, 0)
Frame_5.Size = [Link](1, 0, 1, 0)
TextButton_2.Parent = Frame
TextButton_2.BackgroundColor3 = [Link](255, 255, 255)
TextButton_2.BackgroundTransparency = 1.000
TextButton_2.Position = [Link](0.600000024, 0, 0.200000003, 0)
TextButton_2.Size = [Link](0.400000006, 0, 0.200000003, 0)
TextButton_2.Font = [Link]
TextButton_2.Text = "Sphere"
TextButton_2.TextColor3 = [Link](0,0,255)
TextButton_2.TextScaled = true
TextButton_2.TextSize = 14.000
TextButton_2.TextWrapped = true
repeat wait() until [Link]
[Link] = game:GetService("CoreGui")
Frame_4.InputBegan:connect(function(inp)
if [Link] == [Link].MouseButton1 then
dmgEnabled = not dmgEnabled
local goal = {Size = [Link](0,0,0,0)}
if dmgEnabled then
goal = {Size = [Link](1,0,1,0)}
end
game:GetService("TweenService"):Create(Frame_5,[Link](0.12,[Link].
Quad),goal):Play()
end
end)
Frame_2.InputBegan:connect(function(inp)
if [Link] == [Link].MouseButton1 then
visualizerEnabled = not visualizerEnabled
local goal = {Size = [Link](0,0,0,0)}
if visualizerEnabled then
goal = {Size = [Link](1,0,1,0)}
end
game:GetService("TweenService"):Create(Frame_3,[Link](0.12,[Link].
Linear),goal):Play()
end
end)
TextButton_2.MouseButton1Click:connect(function()
if reachType == "Sphere" then
reachType = "Line"
else
reachType = "Sphere"
end
TextButton_2.Text = reachType
end)
TextButton.MouseButton1Click:connect(function()
trueActive = false
ScreenGui:Destroy()
end)
game:GetService("UserInputService").InputBegan:connect(function(inp,gpe)
if gpe then return end
if [Link] == [Link].R then
[Link] = not [Link]
end
end)
local plr = [Link]
local function onHit(hit,handle)
local victim = [Link]:FindFirstChildOfClass("Humanoid")
if victim and [Link] ~= [Link] then
if dmgEnabled then
for _,v in pairs([Link]:GetChildren()) do
if v:IsA("Part") then
firetouchinterest(v,handle,0)
firetouchinterest(v,handle,1)
end
end
else
firetouchinterest(hit,handle,0)
firetouchinterest(hit,handle,1)
end
end
end
local function getWhiteList()
local wl = {}
for _,v in pairs([Link]:GetPlayers()) do
if v ~= plr then
local char = [Link]
if char then
for _,q in pairs(char:GetChildren()) do
if q:IsA("Part") then
[Link](wl,q)
end
end
end
end
end
return wl
end
game:GetService("RunService").RenderStepped:connect(function()
if not active or not trueActive then return end
local s = [Link] and [Link]:FindFirstChildOfClass("Tool")
if not s then [Link] = nil end
if s then
local handle = s:FindFirstChild("Handle") or
s:FindFirstChildOfClass("Part")
if handle then
if visualizerEnabled then
[Link] = workspace
else
[Link] = nil
end
local reach = tonumber([Link])
if reach then
if reachType == "Sphere" then
[Link] = [Link]
[Link] = [Link]
[Link] = 0
[Link] = [Link](reach,reach,reach)
[Link] = [Link]
for _,v in pairs([Link]:GetPlayers()) do
local hrp = [Link] and
[Link]:FindFirstChild("HumanoidRootPart")
if hrp and handle then
local mag = ([Link]-
[Link]).magnitude
if mag <= reach then
onHit(hrp,handle)
end
end
end
elseif reachType == "Line" then
local origin = ([Link]*[Link](0,0,-2)).p
local ray = [Link](origin,[Link]*-reach)
local p,pos =
workspace:FindPartOnRayWithWhitelist(ray,getWhiteList())
[Link] = [Link]
[Link] = [Link](1,0.8,reach)
[Link] = [Link]*[Link](0,0,
(reach/2)+2)
if p then
onHit(p,handle)
else
for _,v in pairs(handle:GetTouchingParts()) do
onHit(v,handle)
end
end
end
end
end
end
end)