AutoBountyPIa Lua
AutoBountyPIa Lua
--// UI Setup
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
PlayerButton.MouseButton1Click:Connect(function()
selectedPlayer = player
PlayerSelect.Text = "▶ " .. player.Name
PlayerList.Visible = false
end)
end
end
end
PlayerSelect.MouseButton1Click:Connect(function()
PlayerList.Visible = not PlayerList.Visible
UpdatePlayerList()
end)
SpeedSlider.FocusLost:Connect(function()
local newSpeed = tonumber(SpeedSlider.Text:match("%d+"))
if newSpeed and newSpeed > 0 then
flySpeed = newSpeed
SpeedSlider.Text = "Speed: " .. flySpeed
else
SpeedSlider.Text = "Speed: " .. flySpeed
end
end)
--// NoClip
local function EnableNoClip()
noClipEnabled = true
NoClipButton.Text = "NoClip: ON"
noClipConnection = RunService.Stepped:Connect(function()
for _, part in pairs(Character:GetChildren()) do
if part:IsA("BasePart") then
part.CanCollide = false
end
end
end)
end
--// Bay
local function FlyToPlayer()
if flying then
flying = false
DisableNoClip()
if flyConnection then
flyConnection:Disconnect()
flyConnection = nil
end
return
end
HumanoidRootPart.Velocity = Vector3.zero
HumanoidRootPart.CFrame = CFrame.new(newPosition,
targetHRP.Position)
end)
end
end
end
FlyButton.MouseButton1Click:Connect(FlyToPlayer)
--// Aimbot
AimbotButton.MouseButton1Click:Connect(function()
aimbotEnabled = not aimbotEnabled
AimbotButton.Text = aimbotEnabled and "Aimbot: ON" or "Aimbot: OFF"
end)
RunService.RenderStepped:Connect(function()
if aimbotEnabled and selectedPlayer and selectedPlayer.Character then
local targetHRP =
selectedPlayer.Character:FindFirstChild("HumanoidRootPart")
if targetHRP then
game.Workspace.CurrentCamera.CFrame =
CFrame.new(game.Workspace.CurrentCamera.CFrame.Position, targetHRP.Position)
end
end
end)
local module = {
NextAttack = 0,
AttackCooldown = 1, -- Thời gian chờ giữa các đòn đánh
Distance = 55,
attackMobs = true,
attackPlayers = true
}
function module:GetBladeHits()
local BladeHits = {}
local LocalPlayer = Players.LocalPlayer
local PlayerCharacter = LocalPlayer and LocalPlayer.Character
return BladeHits
end
function module:attack()
local CurrentTime = tick()
if CurrentTime - module.NextAttack >= module.AttackCooldown then
module.NextAttack = CurrentTime
ReplicatedStorage.Modules.Net:WaitForChild("RE/RegisterAttack"):FireServer(0)
ReplicatedStorage.Modules.Net:WaitForChild("RE/RegisterHit"):FireServer(Hit)
end
end
end
flyConnection = RunService.RenderStepped:Connect(function()
if isFlyingUp and Humanoid and HumanoidRootPart then
-- Bay lên liên tục theo trục Y
HumanoidRootPart.Velocity = Vector3.new(0, flightSpeed, 0)
end
end)
end
if flyConnection then
flyConnection:Disconnect()
flyConnection = nil
end
--// Khi máu thay đổi, kiểm tra và bay lên nếu cần
Humanoid.HealthChanged:Connect(function(health)
local maxHealth = Humanoid.MaxHealth
local healthPercentage = (health / maxHealth) * 100
--// Khi nhân vật respawn, đảm bảo hệ thống hoạt động lại
LocalPlayer.CharacterAdded:Connect(function(newCharacter)
Character = newCharacter
Humanoid = Character:WaitForChild("Humanoid")
HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
--// Cập nhật nhân vật lần đầu khi chạy code
UpdateCharacter()
Players.PlayerAdded:Connect(UpdatePlayerList)
Players.PlayerRemoving:Connect(UpdatePlayerList)
UpdatePlayerList()
--// Cập nhật nhân vật lần đầu khi chạy code
UpdateCharacter()