repeat
task.wait()
until game:IsLoaded()
local Client = game.Players
local LocalPlayer = Client.LocalPlayer
repeat
wait()
until LocalPlayer.Character
local Char = LocalPlayer.Character
local Root = Char.HumanoidRootPart
local Humanoid = Char.Humanoid
LocalPlayer.CharacterAdded:Connect(function(v)
Char = v
Humanoid = Char:WaitForChild("Humanoid")
Root = Char:WaitForChild("HumanoidRootPart")
end)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local VirtualInputManager = game:GetService("VirtualInputManager")
local Player3CHandle = require(ReplicatedStorage.Client.System.API.Player3CHandle)
-- Create On-Screen Log GUI
local logText = nil
pcall(function()
local GuiParent = game:GetService("CoreGui")
pcall(function() if GuiParent:FindFirstChild("AutoFarmLogGui") then GuiParent.AutoFarmLogGui:Destroy() end end)
local logGui = Instance.new("ScreenGui")
logGui.Name = "AutoFarmLogGui"
pcall(function() logGui.Parent = GuiParent end)
if not logGui.Parent then logGui.Parent = LocalPlayer:WaitForChild("PlayerGui") end
logText = Instance.new("TextLabel")
logText.Parent = logGui
logText.BackgroundTransparency = 1
logText.Position = UDim2.new(0.5, -250, 0, 20)
logText.Size = UDim2.new(0, 500, 0, 50)
logText.Font = Enum.Font.GothamBold
logText.TextSize = 22
logText.TextColor3 = Color3.fromRGB(0, 255, 128)
logText.TextStrokeTransparency = 0.5
logText.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
logText.Text = "Status: Script Loaded"
end)
local ModuleService = {}
ModuleService.__index = ModuleService
function ModuleService.new()
return setmetatable({
Events = {},
Config = {},
Thread = {
["Add"] = function(Value : any)
return task.spawn(function()
while task.wait() do
pcall(Value)
end
end) :: thread
end,
["Delete"] = task.cancel :: (thread) -> (),
} :: any
}, ModuleService)
end
function ModuleService:Load()
local Instance_ = self :: typeof(ModuleService)
Instance_.Events["EnemyService"] = function(Object : any)
for Index, Value in pairs(workspace.EnemyService:GetChildren()) do
if not Value:IsA("Model") or not table.find(Object, Value.Name) then continue end
local Root_ = Value:FindFirstChild("HumanoidRootPart") :: BasePart?
local Humanoid_ = Value:FindFirstChild("Humanoid") :: Humanoid?
if Root_ and Humanoid_ then
if Humanoid_.Health <= 0 then return nil end
return Root_, Humanoid_
end
end
return nil
end
Instance_.Events["Movement"] = function(Object : any)
local Root_, Humanoid_ = Instance_.Events["EnemyService"](Object)
local Remote = game.ReplicatedStorage:WaitForChild("Remote_Event")
repeat
if not Instance_.Config["Enable Nearest"] and not Instance_.Config["Auto Level"] then
Player3CHandle.StopAutoSkill()
break
end
Player3CHandle.ToggleAutoMappedAction("Attack")
VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.Z, false, game)
VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.Z, false, game)
if Instance_.Config["Fast Kill / Fast Attack"] then
for i = 1, 15 do
Player3CHandle.ToggleAutoMappedAction("Attack")
VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.Z, false, game)
VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.Z, false, game)
VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.X, false, game)
VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.X, false, game)
VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.C, false, game)
VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.C, false, game)
end
-- Attempt to set health to 0 (works if the game trusts the client)
pcall(function() Humanoid_.Health = 0 end)
end
if logText and Root_ and Root_.Parent then
logText.Text = "Attacking: " .. Root_.Parent.Name .. " | HP: " .. math.floor(Humanoid_.Health)
end
Root.CFrame = Root_.CFrame * CFrame.new(0, -25, 0) * CFrame.Angles(math.rad(90), 0, 0)
task.wait()
until Humanoid_.Health <= 0 or not Root_
end
end
local Instance_ = ModuleService.new()
Instance_:Load()
Instance_.Config["Position Island"] = "Midgard" :: any
Instance_.Events["Auto Nearest"] = Instance_.Thread["Add"](function()
local Value = Instance_.Config["Enable Nearest"] :: boolean
local AutoLevel = Instance_.Config["Auto Level"] :: boolean
if not Value and not AutoLevel then return end
if AutoLevel then
local playerLevel = 0
pcall(function() playerLevel = game.Players.LocalPlayer.leaderstats.Level.Value end)
if playerLevel < 14000 then
Instance_.Config["Position Island"] = "Jotunheim"
else
Instance_.Config["Position Island"] = "Midgard"
end
if logText then
logText.Text = "Auto Level: [Lv." .. playerLevel .. "] Searching at " .. Instance_.Config["Position Island"] .. "..."
end
end
if Instance_.Config["Position Island"] == "Midgard" then
local Island = Vector3.new(871, 238, -2747)
if (Root.Position - Island).Magnitude > 1000 then
Root.CFrame = CFrame.new(Island)
end
Instance_.Events["Movement"]({
"[Lv.15000] Space Invader",
})
return
end
if Instance_.Config["Position Island"] == "Jotunheim" then
local Island = Vector3.new(-2668, 53, -2301)
if (Root.Position - Island).Magnitude > 1000 then
Root.CFrame = CFrame.new(Island)
end
Instance_.Events["Movement"]({
"[Lv.13000] Flame Soldier",
"[Lv.13000] Thunder Soldier",
"[Lv.13000] Wind Soldier",
"[Lv.15000] Hraegon",
"[Lv.15000] Surtrik",
"[Lv.15000] Thorvak"
})
return
end
end) :: thread
-------------------------------------------------------------------------------------------------------
local Fluent = {} :: any
for Index, Value in pairs({
"https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua",
"https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/SaveManager.lua",
"https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/InterfaceManager.lua",
} :: any) do
Fluent[Index] = loadstring(game:HttpGet(Value))()
end
local Window = Fluent[1]:CreateWindow({
Title = "Broken Blade",
SubTitle = "by DDShop",
TabWidth = 160,
Size = UDim2.fromOffset(480, 360),
Acrylic = true,
Theme = "Darker",
Transparency = 0,
MinimizeKey = Enum.KeyCode.LeftControl
})
local Tabs = {
Main = Window:AddTab({ Title = "Main", Icon = "" }),
Settings = Window:AddTab({ Title = "Settings", Icon = "settings" })
}
local Options = Fluent[1].Options
do
Tabs.Main:AddDropdown("Islands", {
Title = "Position Island",
Description = "Select the island you want to farm.",
Values = {
"Midgard", "Jotunheim"
},
Default = "Midgard",
Callback = function(Value)
Instance_.Config["Position Island"] = Value
end
})
Tabs.Main:AddToggle("Nearest", {
Title = "Enable Nearest",
Description = "Enable autofarming.",
Default = false,
Callback = function(Value)
Instance_.Config["Enable Nearest"] = Value
end
})
Tabs.Main:AddToggle("AutoLevel", {
Title = "Auto Level (ทำไก่ตัน)",
Description = "Automatically switches islands and farms based on your level.",
Default = false,
Callback = function(Value)
Instance_.Config["Auto Level"] = Value
end
})
Tabs.Main:AddToggle("FastKill", {
Title = "Fast Kill / Fast Attack",
Description = "Spams attack and skills rapidly to kill bosses instantly.",
Default = true,
Callback = function(Value)
Instance_.Config["Fast Kill / Fast Attack"] = Value
end
})
end
Fluent[3]:SetLibrary(Fluent[1])
Fluent[2]:IgnoreThemeSettings()
Fluent[2]:SetIgnoreIndexes({})
Fluent[3]:SetFolder("BrokenBlade")
Fluent[2]:SetFolder("BrokenBlade/game")
Fluent[3]:BuildInterfaceSection(Tabs.Settings)
Fluent[2]:BuildConfigSection(Tabs.Settings)
Window:SelectTab(1)
Fluent:Notify({
Title = "Script",
Content = "The script has been loaded.",
Duration = 8
})
Fluent[2]:LoadAutoloadConfig()
#ดูหนังฟรี #ดูหนัง #ดู หนัง ออนไลน์ hd #หนังชนโรง #ซูม
2 yปี