Run it
Copy the script and paste it into your executor.
Players = :()
Workspace = :()
RunService = :()
VirtualInputManager = :()
VirtualUser = :()
TweenService = :()
LocalPlayer = Players.LocalPlayer
PlayerGui = LocalPlayer:()
LocalPlayer.Idled:(()
VirtualUser:(.(, ), Workspace.CurrentCamera.CFrame)
.()
VirtualUser:(.(, ), Workspace.CurrentCamera.CFrame)
)
ScreenGui = .()
ScreenGui.Name =
ScreenGui.ResetOnSpawn =
ScreenGui.Parent = PlayerGui
WelcomeFrame = .()
WelcomeFrame.Size = .(, , , )
WelcomeFrame.Position = .(, , , )
WelcomeFrame.BackgroundColor3 = .(, , )
WelcomeFrame.BorderSizePixel =
WelcomeFrame.ZIndex =
WelcomeFrame.Parent = ScreenGui
WelcomeText = .()
WelcomeText.Size = .(, , , )
WelcomeText.BackgroundTransparency =
WelcomeText.Text = .. LocalPlayer.DisplayName
WelcomeText.TextColor3 = .(, , )
WelcomeText.Font = .Font.GothamBold
WelcomeText.TextSize =
WelcomeText.ZIndex =
WelcomeText.Parent = WelcomeFrame
ToggleBtn = .()
ToggleBtn.Name =
ToggleBtn.Size = .(, , , )
ToggleBtn.Position = .(, , , )
ToggleBtn.BackgroundColor3 = .(, , )
ToggleBtn.Text =
ToggleBtn.TextColor3 = .(, , )
ToggleBtn.Font = .Font.SourceSansBold
ToggleBtn.TextSize =
ToggleBtn.Active =
ToggleBtn.Draggable =
ToggleBtn.Visible =
ToggleBtn.Parent = ScreenGui
ToggleCorner = .()
ToggleCorner.CornerRadius = .(, )
ToggleCorner.Parent = ToggleBtn
MainFrame = .()
MainFrame.Name =
MainFrame.Size = .(, , , )
MainFrame.Position = .(, -, , -)
MainFrame.BackgroundColor3 = .(, , )
MainFrame.BorderSizePixel =
MainFrame.Active =
MainFrame.Draggable =
MainFrame.Visible =
MainFrame.Parent = ScreenGui
ToggleBtn.MouseButton1Click:(()
MainFrame.Visible = MainFrame.Visible
)
MainCorner = .()
MainCorner.CornerRadius = .(, )
MainCorner.Parent = MainFrame
.(()
.()
tweenInfo = TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out)
fadeFrame = TweenService:(WelcomeFrame, tweenInfo, {BackgroundTransparency = })
fadeText = TweenService:(WelcomeText, tweenInfo, {TextTransparency = })
fadeFrame:()
fadeText:()
fadeFrame.Completed:()
WelcomeFrame:()
MainFrame.Visible =
ToggleBtn.Visible =
)
Title = .()
Title.Size = .(, -, , )
Title.Position = .(, , , )
Title.BackgroundTransparency =
Title.Text =
Title.TextColor3 = .(, , )
Title.TextSize =
Title.Font = .Font.SourceSansBold
Title.TextXAlignment = .TextXAlignment.Left
Title.Parent = MainFrame
InfoBtn = .()
InfoBtn.Name =
InfoBtn.Size = .(, , , )
InfoBtn.Position = .(, -, , )
InfoBtn.BackgroundColor3 = .(, , )
InfoBtn.Text =
InfoBtn.TextColor3 = .(, , )
InfoBtn.Font = .Font.SourceSansBold
InfoBtn.TextSize =
InfoBtn.Parent = MainFrame
.(, InfoBtn).CornerRadius = .(, )
CloseBtn = .()
CloseBtn.Name =
CloseBtn.Size = .(, , , )
CloseBtn.Position = .(, -, , )
CloseBtn.BackgroundColor3 = .(, , )
CloseBtn.Text =
CloseBtn.TextColor3 = .(, , )
CloseBtn.Font = .Font.SourceSansBold
CloseBtn.TextSize =
CloseBtn.Parent = MainFrame
.(, CloseBtn).CornerRadius = .(, )
CloseBtn.MouseButton1Click:(()
ScreenGui:()
)
InfoFrame = .()
InfoFrame.Name =
InfoFrame.Size = .(, , , )
InfoFrame.Position = .(, , , )
InfoFrame.BackgroundColor3 = .(, , )
InfoFrame.BorderSizePixel =
InfoFrame.Visible =
InfoFrame.ZIndex =
InfoFrame.Parent = MainFrame
.(, InfoFrame).CornerRadius = .(, )
InfoText = .()
InfoText.Size = .(, , , )
InfoText.Position = .(, , , )
InfoText.BackgroundTransparency =
InfoText.ZIndex =
InfoText.Text =
InfoText.TextColor3 = .(, , )
InfoText.TextSize =
InfoText.Font = .Font.SourceSans
InfoText.TextWrapped =
InfoText.TextXAlignment = .TextXAlignment.Left
InfoText.TextYAlignment = .TextYAlignment.Top
InfoText.Parent = InfoFrame
BackBtn = .()
BackBtn.Size = .(, , , )
BackBtn.Position = .(, , , )
BackBtn.BackgroundColor3 = .(, , )
BackBtn.ZIndex =
BackBtn.Text =
BackBtn.TextColor3 = .(, , )
BackBtn.Font = .Font.SourceSansBold
BackBtn.TextSize =
BackBtn.Parent = InfoFrame
.(, BackBtn).CornerRadius = .(, )
InfoBtn.MouseButton1Click:(() InfoFrame.Visible = InfoFrame.Visible )
BackBtn.MouseButton1Click:(() InfoFrame.Visible = )
(text, defaultBox, posY)
lbl = .()
lbl.Size = .(, , , )
lbl.Position = .(, , posY, )
lbl.BackgroundTransparency =
lbl.Text = text
lbl.TextColor3 = .(, , )
lbl.Font = .Font.SourceSansBold
lbl.TextSize =
lbl.TextXAlignment = .TextXAlignment.Left
lbl.Parent = MainFrame
box = .()
box.Size = .(, , , )
box.Position = .(, , posY, )
box.BackgroundColor3 = .(, , )
box.Text = defaultBox
box.TextColor3 = .(, , )
box.Font = .Font.SourceSans
box.TextSize =
box.Parent = MainFrame
box
Weapon1Box = (, , )
Weapon2Box = (, , )
HeightBox = (, , )
AutoFillBtn = .()
AutoFillBtn.Name =
AutoFillBtn.Size = .(, , , )
AutoFillBtn.Position = .(, , , )
AutoFillBtn.BackgroundColor3 = .(, , )
AutoFillBtn.Text =
AutoFillBtn.TextColor3 = .(, , )
AutoFillBtn.Font = .Font.SourceSansBold
AutoFillBtn.TextSize =
AutoFillBtn.Parent = MainFrame
.(, AutoFillBtn).CornerRadius = .(, )
StatusLbl = .()
StatusLbl.Size = .(, , , )
StatusLbl.Position = .(, , , )
StatusLbl.BackgroundTransparency =
StatusLbl.Text =
StatusLbl.TextColor3 = .(, , )
StatusLbl.Font = .Font.SourceSansBold
StatusLbl.TextSize =
StatusLbl.TextXAlignment = .TextXAlignment.Left
StatusLbl.Parent = MainFrame
AutoDetectLbl = .()
AutoDetectLbl.Size = .(, , , )
AutoDetectLbl.Position = .(, , , )
AutoDetectLbl.BackgroundTransparency =
AutoDetectLbl.Text =
AutoDetectLbl.TextColor3 = .(, , )
AutoDetectLbl.Font = .Font.SourceSans
AutoDetectLbl.TextSize =
AutoDetectLbl.TextXAlignment = .TextXAlignment.Left
AutoDetectLbl.Parent = MainFrame
StartBtn = .()
StartBtn.Size = .(, , , )
StartBtn.Position = .(, , , )
StartBtn.BackgroundColor3 = .(, , )
StartBtn.Text =
StartBtn.TextColor3 = .(, , )
StartBtn.Font = .Font.SourceSansBold
StartBtn.TextSize =
StartBtn.Parent = MainFrame
.(, StartBtn).CornerRadius = .(, )
isAutoFillWeapons =
()
foundWeapons = {}
char = LocalPlayer.Character
backpack = LocalPlayer:()
char
_, item (char:())
item:()
.(foundWeapons, item.Name)
backpack
_, item (backpack:())
item:()
.(foundWeapons, item.Name)
#foundWeapons >
Weapon1Box.Text = foundWeapons[]
#foundWeapons >
Weapon2Box.Text = foundWeapons[]
Weapon2Box.Text = foundWeapons[]
AutoFillBtn.MouseButton1Click:(()
isAutoFillWeapons = isAutoFillWeapons
isAutoFillWeapons
AutoFillBtn.BackgroundColor3 = .(, , )
AutoDetectLbl.Text =
()
AutoFillBtn.BackgroundColor3 = .(, , )
AutoDetectLbl.Text =
)
.(()
.()
isAutoFillWeapons
()
)
isAutoFarming =
currentTarget =
LocalPlayer.CharacterAdded:((char)
isAutoFarming
.()
char
_, part (char:())
part:()
part.CanCollide =
)
()
char = LocalPlayer.Character
char char:()
root = char.HumanoidRootPart
targetFilter = Workspace:()
enemyFolder = targetFilter targetFilter:()
enemyFolder
bestTarget =
bestDist = .huge
_, enemy (enemyFolder:())
enemy:()
values = enemy:()
hp = values values:()
hp hp.Value >
eRoot = enemy.PrimaryPart enemy:() enemy:()
eRoot
dist = (root.Position - eRoot.Position).Magnitude
dist < bestDist
bestTarget = enemy
bestDist = dist
bestTarget
(keyCode)
VirtualInputManager:(, keyCode, , )
.()
VirtualInputManager:(, keyCode, , )
(weaponName)
char = LocalPlayer.Character
char
humanoid = char:()
humanoid humanoid.Health <=
currentTool = char:()
currentTool currentTool.Name:() == weaponName:()
currentTool
backpack = LocalPlayer:()
backpack
_, tool (backpack:())
tool:() tool.Name:() == weaponName:()
humanoid:(tool)
tool
.(()
toggleWeapon =
skillKeys = {.KeyCode.Z, .KeyCode.X, .KeyCode.C}
.()
isAutoFarming
char = LocalPlayer.Character
humanoid = char char:()
humanoid humanoid.Health >
w1 = Weapon1Box.Text:()
w2 = Weapon2Box.Text:()
activeWeaponName = (toggleWeapon w2 ~= ) w2 w1
activeWeaponName activeWeaponName ~=
tool = (activeWeaponName)
tool
StatusLbl.Text = .. activeWeaponName
_, key (skillKeys)
isAutoFarming
(key)
.()
startAttack = ()
(() - startAttack) <
isAutoFarming
char:(tool.Name)
(activeWeaponName)
tool:()
.()
toggleWeapon = toggleWeapon
StatusLbl.Text = .. activeWeaponName
.()
StatusLbl.Text =
.()
StatusLbl.Text =
.()
)
RunService.Heartbeat:(()
isAutoFarming
char = LocalPlayer.Character
char
root = char:()
humanoid = char:()
root humanoid humanoid.Health <=
humanoid.AutoRotate =
humanoid.PlatformStand =
currentTarget
hpVal = currentTarget:() currentTarget.Values:()
currentTarget.Parent (hpVal hpVal.Value <= )
currentTarget =
currentTarget
currentTarget = ()
currentTarget
eRoot = currentTarget.PrimaryPart currentTarget:() currentTarget:()
eRoot
offsetHeight = (HeightBox.Text)
targetPos = eRoot.Position + .(, offsetHeight, )
root.CFrame = .(targetPos, eRoot.Position, .(, , ))
root.AssemblyLinearVelocity = .zero
root.AssemblyAngularVelocity = .zero
)
StartBtn.MouseButton1Click:(()
isAutoFarming = isAutoFarming
char = LocalPlayer.Character
humanoid = char char:()
isAutoFarming
StartBtn.Text =
StartBtn.BackgroundColor3 = .(, , )
char
_, part (char:())
part:() part.CanCollide =
currentTarget = ()
StartBtn.Text =
StartBtn.BackgroundColor3 = .(, , )
StatusLbl.Text =
humanoid
humanoid.AutoRotate =
humanoid.PlatformStand =
char
_, part (char:())
part:() part.CanCollide =
currentTarget =
)
No fyp

Universal