Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UserInputService = :()
player = Players.LocalPlayer
camera = .CurrentCamera
aimEnabled =
targetLockEnabled =
smoothness =
maxDistance =
targetPartName =
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.Parent = player:()
main = .()
main.Size = .(, )
main.Position = .(, -, , -)
main.BackgroundColor3 = .(, , )
main.BorderSizePixel =
main.Parent = gui
corner = .()
corner.CornerRadius = .(, )
corner.Parent = main
title = .()
title.Size = .(, -, , )
title.Position = .(, )
title.BackgroundTransparency =
title.Text =
title.TextColor3 = .(, , )
title.TextSize =
title.Font = .Font.GothamBold
title.Parent = main
(text, y)
button = .()
button.Size = .(, -, , )
button.Position = .(, y)
button.BackgroundColor3 = .(, , )
button.TextColor3 = .(, , )
button.TextSize =
button.Font = .Font.GothamMedium
button.Text = text
button.AutoButtonColor =
button.Parent = main
c = .()
c.CornerRadius = .(, )
c.Parent = button
button
aimButton = (, )
lockButton = (, )
smoothLabel = .()
smoothLabel.Size = .(, -, , )
smoothLabel.Position = .(, )
smoothLabel.BackgroundTransparency =
smoothLabel.Text =
smoothLabel.TextColor3 = .(, , )
smoothLabel.TextSize =
smoothLabel.Font = .Font.Gotham
smoothLabel.TextXAlignment = .TextXAlignment.Left
smoothLabel.Parent = main
slider = .()
slider.Size = .(, -, , )
slider.Position = .(, )
slider.BackgroundColor3 = .(, , )
slider.Text =
slider.AutoButtonColor =
slider.Parent = main
sliderCorner = .()
sliderCorner.CornerRadius = .(, )
sliderCorner.Parent = slider
fill = .()
fill.Size = .(smoothness, , , )
fill.BackgroundColor3 = .(, , )
fill.BorderSizePixel =
fill.Parent = slider
fillCorner = .()
fillCorner.CornerRadius = .(, )
fillCorner.Parent = fill
aimButton.MouseButton1Click:(()
aimEnabled = aimEnabled
aimEnabled
aimButton.Text =
aimButton.BackgroundColor3 = .(, , )
aimButton.Text =
aimButton.BackgroundColor3 = .(, , )
)
lockButton.MouseButton1Click:(()
targetLockEnabled = targetLockEnabled
targetLockEnabled
lockButton.Text =
lockButton.BackgroundColor3 = .(, , )
lockButton.Text =
lockButton.BackgroundColor3 = .(, , )
)
draggingSlider =
(x)
left = slider.AbsolutePosition.X
width = slider.AbsoluteSize.X
percent = .((x - left) / width, , )
smoothness = .(percent, , )
fill.Size = .(percent, , , )
smoothLabel.Text = .. .(smoothness * ) ..
slider.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
draggingSlider =
(input.Position.X)
)
UserInputService.InputChanged:((input)
draggingSlider
input.UserInputType == .UserInputType.MouseMovement
input.UserInputType == .UserInputType.Touch
(input.Position.X)
)
UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
draggingSlider =
)
()
closestCharacter =
closestDistance = .huge
viewport = camera.ViewportSize
screenCenter = .(viewport.X / , viewport.Y / )
_, otherPlayer (Players:())
otherPlayer ~= player
character = otherPlayer.Character
character
humanoid = character:()
targetPart = character:(targetPartName)
humanoid humanoid.Health > targetPart
screenPosition, visible =
camera:(targetPart.Position)
visible screenPosition.Z >
distance = (
.(screenPosition.X, screenPosition.Y)
- screenCenter
).Magnitude
worldDistance =
(camera.CFrame.Position - targetPart.Position).Magnitude
distance < closestDistance
worldDistance <= maxDistance
closestDistance = distance
closestCharacter = character
closestCharacter
RunService.RenderStepped:(()
aimEnabled targetLockEnabled
target = ()
target
targetPart = target:(targetPartName)
targetPart
cameraPosition = camera.CFrame.Position
desiredCFrame = .(
cameraPosition,
targetPart.Position
)
camera.CFrame = camera.CFrame:(
desiredCFrame,
smoothness
)
)
dragging =
dragStart
startPosition
title.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPosition = main.Position
)
UserInputService.InputChanged:((input)
dragging
input.UserInputType == .UserInputType.MouseMovement
input.UserInputType == .UserInputType.Touch
delta = input.Position - dragStart
main.Position = .(
startPosition.X.Scale,
startPosition.X.Offset + delta.X,
startPosition.Y.Scale,
startPosition.Y.Offset + delta.Y
)
)
UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
dragging =
)Well you can set the Smoothness

Universal