--// SERVICES local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local player = Players.LocalPlayer --// REMOTES local AttackRemote = ReplicatedStorage:WaitForChild("Packages"):WaitForChild("_Index") :WaitForChild("sleitnick_knit@1.5.1"):WaitForChild("knit") :WaitForChild("Services"):WaitForChild("NPCService"):WaitForChild("RE") :WaitForChild("onDamagedNPC") local RebirthRemote = ReplicatedStorage:WaitForChild("Packages"):WaitForChild("_Index") :WaitForChild("sleitnick_knit@1.5.1"):WaitForChild("knit") :WaitForChild("Services"):WaitForChild("RebirthService"):WaitForChild("RE") :WaitForChild("onRebirthRequest") local BestSwordRemote = ReplicatedStorage:WaitForChild("Packages"):WaitForChild("_Index") :WaitForChild("sleitnick_knit@1.5.1"):WaitForChild("knit") :WaitForChild("Services"):WaitForChild("SwordService"):WaitForChild("RF") :WaitForChild("equipBest") --// GUI local ScreenGui = Instance.new("ScreenGui", game.CoreGui) local Main = Instance.new("Frame", ScreenGui) Main.Size = UDim2.new(0, 320, 0, 260) Main.Position = UDim2.new(0.05, 0, 0.3, 0) Main.BackgroundColor3 = Color3.fromRGB(25, 25, 35) Main.Active = true Main.Draggable = true Instance.new("UICorner", Main).CornerRadius = UDim.new(0, 12) local Title = Instance.new("TextLabel", Main) Title.Size = UDim2.new(1, 0, 0, 40) Title.BackgroundTransparency = 1 Title.Text = "Made by _OpenSource_" Title.Font = Enum.Font.GothamBold Title.TextColor3 = Color3.new(1,1,1) Title.TextScaled = true --// BUTTON CREATOR FUNCTION local function createButton(text, yPos, color) local btn = Instance.new("TextButton", Main) btn.Size = UDim2.new(0.85, 0, 0, 40) btn.Position = UDim2.new(0.075, 0, yPos, 0) btn.BackgroundColor3 = color btn.Text = text .. ": OFF" btn.TextScaled = true Instance.new("UICorner", btn) return btn end local AttackBtn = createButton("Auto Attack", 0.25, Color3.fromRGB(0,170,255)) local RebirthBtn = createButton("Auto Rebirth", 0.5, Color3.fromRGB(0,200,100)) local SwordBtn = createButton("Auto Best Sword", 0.75, Color3.fromRGB(200,100,255)) --// TOGGLES local AutoAttack = false local AutoRebirth = false local AutoSword = false AttackBtn.MouseButton1Click:Connect(function() AutoAttack = not AutoAttack AttackBtn.Text = "Auto Attack: " .. (AutoAttack and "ON" or "OFF") end) RebirthBtn.MouseButton1Click:Connect(function() AutoRebirth = not AutoRebirth RebirthBtn.Text = "Auto Rebirth: " .. (AutoRebirth and "ON" or "OFF") end) SwordBtn.MouseButton1Click:Connect(function() AutoSword = not AutoSword SwordBtn.Text = "Auto Best Sword: " .. (AutoSword and "ON" or "OFF") end) --// AUTO ATTACK task.spawn(function() while true do if AutoAttack then local char = player.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") if hrp then local closestNPC, closestDist, closestWorld = nil, math.huge, nil for _, world in pairs(workspace.NPCs:GetChildren()) do for _, npcType in pairs(world:GetChildren()) do for _, npc in pairs(npcType:GetChildren()) do local npcHRP = npc:FindFirstChild("HumanoidRootPart") if npcHRP then local dist = (hrp.Position - npcHRP.Position).Magnitude if dist < closestDist then closestDist = dist closestNPC = npc closestWorld = world.Name end end end end end if closestNPC and closestDist < 25 then AttackRemote:FireServer(closestWorld, closestNPC.Name) end end end task.wait(0.05) end end) --// AUTO REBIRTH task.spawn(function() while true do if AutoRebirth then RebirthRemote:FireServer() end task.wait(0.5) end end) --// AUTO BEST SWORD task.spawn(function() while true do if AutoSword then pcall(function() BestSwordRemote:InvokeServer(player) end) end task.wait(1) end end)