From 6bef9f5b4e4d800292ff991a9e3cf59d411d21fd Mon Sep 17 00:00:00 2001 From: N60Script Date: Sun, 14 Sep 2025 00:42:49 +0300 Subject: [PATCH] Update addon.lua --- addon.lua | 456 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 254 insertions(+), 202 deletions(-) diff --git a/addon.lua b/addon.lua index 10ef83c..2680cfa 100644 --- a/addon.lua +++ b/addon.lua @@ -1,238 +1,290 @@ --- الخدمات +-- // الخدمات local Players = game:GetService("Players") local RunService = game:GetService("RunService") -local Workspace = game:GetService("Workspace") local TeleportService = game:GetService("TeleportService") local HttpService = game:GetService("HttpService") local player = Players.LocalPlayer -local backpack = player:WaitForChild("Backpack") local character = player.Character or player.CharacterAdded:Wait() local hrp = character:WaitForChild("HumanoidRootPart") local humanoid = character:WaitForChild("Humanoid") --- ----- الأدوات الخاصة بـ Steal a brainrot ----- -local stealItems = {"Tung Bat","Tung","Cloner","Body","Hook"} +------------------------- +-- واجهة 1: N60 Hub (Flip + Sit Toggle + God Mode + ESP) +local screenGui = Instance.new("ScreenGui") +screenGui.Name = "N60Hub" +screenGui.ResetOnSpawn = false +screenGui.Parent = player:WaitForChild("PlayerGui") -local function hasStealItem() - for _, item in ipairs(backpack:GetChildren()) do - for _, name in ipairs(stealItems) do - if string.find(item.Name:lower(), name:lower()) then - return true - end +local frame = Instance.new("Frame", screenGui) +frame.Size = UDim2.new(0, 160, 0, 90) +frame.Position = UDim2.new(0.05,0,0.2,0) +frame.BackgroundColor3 = Color3.fromRGB(0,0,0) +frame.BorderColor3 = Color3.fromRGB(255,0,0) +frame.BorderSizePixel = 3 +frame.Active = true +frame.Draggable = true + +local title = Instance.new("TextLabel", frame) +title.Size = UDim2.new(1,0,0,25) +title.BackgroundTransparency = 1 +title.Text = "N60 Hub" +title.TextColor3 = Color3.fromRGB(255,0,0) +title.Font = Enum.Font.SourceSansBold +title.TextSize = 20 + +-- زر اختفاء (Flip + Sit Toggle) +local hideBtn = Instance.new("TextButton", frame) +hideBtn.Size = UDim2.new(0.8,0,0,30) +hideBtn.Position = UDim2.new(0.1,0,0.5,0) +hideBtn.BackgroundColor3 = Color3.fromRGB(30,30,30) +hideBtn.Text = "اختفاء" +hideBtn.TextColor3 = Color3.fromRGB(255,255,255) +hideBtn.Font = Enum.Font.SourceSansBold +hideBtn.TextSize = 18 + +local hidden = false +local originalCFrame + +hideBtn.MouseButton1Click:Connect(function() + if not hrp or not humanoid then return end + + if not hidden then + originalCFrame = hrp.CFrame + hrp.CFrame = hrp.CFrame * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,-5,0) + humanoid.Sit = true + hidden = true + hideBtn.Text = "إلغاء الاختفاء" + else + if originalCFrame then + hrp.CFrame = originalCFrame + else + hrp.CFrame = hrp.CFrame * CFrame.Angles(math.rad(-180),0,0) end + humanoid.Sit = false + hidden = false + hideBtn.Text = "اختفاء" end - return false +end) + +-- // God Mode تلقائي +local function enableGodMode() + character = player.Character or player.CharacterAdded:Wait() + humanoid = character:WaitForChild("Humanoid") + humanoid.Health = humanoid.MaxHealth + humanoid:GetPropertyChangedSignal("Health"):Connect(function() + if humanoid.Health < humanoid.MaxHealth then + humanoid.Health = humanoid.MaxHealth + end + end) end --- ----- عناصر الماب الخاصة بـ 99 Nights ----- -local targetNames = {"Carrot","Chest","Open","Box","Flower"} +enableGodMode() +player.CharacterAdded:Connect(function(char) + character = char + hrp = char:WaitForChild("HumanoidRootPart") + humanoid = char:WaitForChild("Humanoid") + enableGodMode() +end) -local function hasMapItem() - for _, obj in ipairs(Workspace:GetDescendants()) do - for _, name in ipairs(targetNames) do - if obj.Name and string.find(obj.Name:lower(), name:lower()) then - return true - end - end +-- // ESP لأطراف اللاعبين +local function createESP(targetPlayer) + if targetPlayer == player then return end + local targetChar = targetPlayer.Character + if not targetChar then return end + + local function makeESP(part) + if not part then return end + local box = Instance.new("BoxHandleAdornment") + box.Adornee = part + box.Color3 = Color3.fromRGB(255,0,0) + box.Size = part.Size + box.AlwaysOnTop = true + box.ZIndex = 10 + box.Parent = part end - return false -end --- ----- دالة تشغيل 99 Nights ----- -local function run99Nights() - if player.PlayerGui:FindFirstChild("FullScreenCover") then - player.PlayerGui.FullScreenCover:Destroy() + local function addESP() + for _,p in pairs(targetChar:GetChildren()) do + if p:IsA("BasePart") then + makeESP(p) + end + end end - local screenGui = Instance.new("ScreenGui") - screenGui.Name = "FullScreenCover" - screenGui.ResetOnSpawn = false - screenGui.IgnoreGuiInset = true - screenGui.DisplayOrder = 9999 - screenGui.Parent = player:WaitForChild("PlayerGui") - - local frame = Instance.new("Frame") - frame.Size = UDim2.new(1,0,1,0) - frame.Position = UDim2.new(0,0,0,0) - frame.BackgroundColor3 = Color3.new(0,0,0) - frame.BorderSizePixel = 0 - frame.Parent = screenGui - - local label = Instance.new("TextLabel") - label.Size = UDim2.new(1,0,1,0) - label.BackgroundTransparency = 1 - label.Position = UDim2.new(0,0,0,0) - label.Font = Enum.Font.SourceSansBold - label.TextScaled = true - label.TextColor3 = Color3.new(1,1,1) - label.Text = "جار التجميع..\nN60 Hub افضل سكربت\nلاتنسى تشرفنا ديس\nhttps://discord.gg/wczEq8yg" - label.Parent = frame - - local success, err = pcall(function() - loadstring(game:HttpGet("https://raw.githubusercontent.com/Rx1m/CpsHub/refs/heads/main/Cpsnerfv2"))() + addESP() + targetPlayer.CharacterAdded:Connect(function(char) + targetChar = char + addESP() end) - if not success then warn("فشل تشغيل السكربت: "..err) end end --- ----- نسخة Steal a brainrot كاملة ----- -local function runStealScript() - -- واجهة N60 Hub - local screenGui = Instance.new("ScreenGui") - screenGui.Name = "N60Hub" - screenGui.ResetOnSpawn = false - screenGui.Parent = player:WaitForChild("PlayerGui") - - local frame = Instance.new("Frame", screenGui) - frame.Size = UDim2.new(0, 160, 0, 90) - frame.Position = UDim2.new(0.05,0,0.2,0) - frame.BackgroundColor3 = Color3.fromRGB(0,0,0) - frame.BorderColor3 = Color3.fromRGB(255,0,0) - frame.BorderSizePixel = 3 - frame.Active = true - frame.Draggable = true - - local title = Instance.new("TextLabel", frame) - title.Size = UDim2.new(1,0,0,25) - title.BackgroundTransparency = 1 - title.Text = "Steal a brainrot" - title.TextColor3 = Color3.fromRGB(255,0,0) - title.Font = Enum.Font.SourceSansBold - title.TextSize = 20 - - -- زر اختفاء (Flip + Sit Toggle) - local hideBtn = Instance.new("TextButton", frame) - hideBtn.Size = UDim2.new(0.8,0,0,30) - hideBtn.Position = UDim2.new(0.1,0,0.5,0) - hideBtn.BackgroundColor3 = Color3.fromRGB(30,30,30) - hideBtn.Text = "اختفاء" - hideBtn.TextColor3 = Color3.fromRGB(255,255,255) - hideBtn.Font = Enum.Font.SourceSansBold - hideBtn.TextSize = 18 - - local hidden = false - local originalCFrame - - hideBtn.MouseButton1Click:Connect(function() - if not hrp or not humanoid then return end - - if not hidden then - originalCFrame = hrp.CFrame - hrp.CFrame = hrp.CFrame * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,-5,0) - humanoid.Sit = true - hidden = true - hideBtn.Text = "إلغاء الاختفاء" - else - if originalCFrame then - hrp.CFrame = originalCFrame - else - hrp.CFrame = hrp.CFrame * CFrame.Angles(math.rad(-180),0,0) - end - humanoid.Sit = false - hidden = false - hideBtn.Text = "اختفاء" - end - end) +for _, p in pairs(Players:GetPlayers()) do + createESP(p) +end - -- God Mode - local function enableGodMode() - humanoid.Health = humanoid.MaxHealth - humanoid:GetPropertyChangedSignal("Health"):Connect(function() - if humanoid.Health < humanoid.MaxHealth then - humanoid.Health = humanoid.MaxHealth - end - end) - end - enableGodMode() - player.CharacterAdded:Connect(function(char) - character = char - hrp = char:WaitForChild("HumanoidRootPart") - humanoid = char:WaitForChild("Humanoid") - enableGodMode() +Players.PlayerAdded:Connect(function(p) + p.CharacterAdded:Connect(function() + createESP(p) end) +end) + +------------------------- +-- واجهة 2: Anti Hub (مضاد ضرب + تغيير السيرفر) +local antiGui = Instance.new("ScreenGui", player.PlayerGui) +antiGui.ResetOnSpawn = false - -- Rainbow ESP - local function getRainbowColor() - local hue = (tick() % 5)/5 - return Color3.fromHSV(hue,1,1) +local antiFrame = Instance.new("Frame", antiGui) +antiFrame.Size = UDim2.new(0,160,0,160) +antiFrame.Position = UDim2.new(0.7,0,0.5,-80) +antiFrame.BackgroundColor3 = Color3.fromRGB(0,0,0) +antiFrame.BorderColor3 = Color3.fromRGB(255,0,0) +antiFrame.BorderSizePixel = 2 +antiFrame.Active = true +antiFrame.Draggable = true + +local antiTitle = Instance.new("TextLabel", antiFrame) +antiTitle.Size = UDim2.new(1,0,0,20) +antiTitle.Position = UDim2.new(0,0,0,0) +antiTitle.BackgroundColor3 = Color3.fromRGB(30,30,30) +antiTitle.Text = "N60 Hub" +antiTitle.TextColor3 = Color3.fromRGB(255,0,0) +antiTitle.Font = Enum.Font.SourceSansBold +antiTitle.TextScaled = true + +-- زر مضاد ضرب +local vflyBtn = Instance.new("TextButton", antiFrame) +vflyBtn.Size = UDim2.new(0.8,0,0,30) +vflyBtn.Position = UDim2.new(0.1,0,0.25,0) +vflyBtn.Text = "مضاد ضرب" +vflyBtn.Font = Enum.Font.SourceSansBold +vflyBtn.TextScaled = true +vflyBtn.TextColor3 = Color3.fromRGB(255,255,255) +vflyBtn.BackgroundColor3 = Color3.fromRGB(255,0,0) + +local timerLabel = Instance.new("TextLabel", antiFrame) +timerLabel.Size = UDim2.new(0.8,0,0,20) +timerLabel.Position = UDim2.new(0.1,0,0.55,0) +timerLabel.BackgroundColor3 = Color3.fromRGB(0,255,0) +timerLabel.TextColor3 = Color3.fromRGB(0,0,0) +timerLabel.Font = Enum.Font.SourceSansBold +timerLabel.TextScaled = true +timerLabel.Visible = false + +local cooldownLabel = Instance.new("TextLabel", antiFrame) +cooldownLabel.Size = UDim2.new(0.8,0,0,20) +cooldownLabel.Position = UDim2.new(0.1,0,0.75,0) +cooldownLabel.BackgroundColor3 = Color3.fromRGB(255,0,0) +cooldownLabel.TextColor3 = Color3.fromRGB(0,0,0) +cooldownLabel.Font = Enum.Font.SourceSansBold +cooldownLabel.TextScaled = true +cooldownLabel.Visible = false + +local hoverHeight = 11.5 +local hoverTime = 0.50 +local groundTime = 0.15 +local riseSpeed = 50 +local fallSpeed = 50 +local ascending = true +local startY = hrp.Position.Y +local targetY = startY + hoverHeight +local hoverStart = 0 + +local vflyEnabled = false +local cooldownActive = false + +vflyBtn.MouseButton1Click:Connect(function() + if vflyEnabled or cooldownActive then return end + + -- المضاد يعمل لمدة 5.3 ثانية + vflyEnabled = true + vflyBtn.BackgroundColor3 = Color3.fromRGB(0,255,0) + timerLabel.Visible = true + + local countdown =5 + while countdown > 0 do + timerLabel.Text = string.format("%.1f", countdown).."s" + task.wait(0.1) + countdown = countdown - 0.1 end - local function createRainbowESP(targetPlayer) - if targetPlayer == player then return end - local targetChar = targetPlayer.Character - if not targetChar then return end - - local boxes = {} - local nameLabel - - local function makeESP(part) - if not part then return end - local box = Instance.new("BoxHandleAdornment") - box.Adornee = part - box.Size = part.Size - box.AlwaysOnTop = true - box.ZIndex = 10 - box.Parent = part - table.insert(boxes, box) - end + -- نهاية العد: توقف المضاد، يظهر المؤقت الثاني 1 ثانية + vflyEnabled = false + timerLabel.Visible = false + timerLabel.Text = "" - local function addName() - local head = targetChar:FindFirstChild("Head") - if head then - local billboard = Instance.new("BillboardGui") - billboard.Size = UDim2.new(0,100,0,25) - billboard.AlwaysOnTop = true - billboard.Adornee = head - billboard.Parent = head - - nameLabel = Instance.new("TextLabel", billboard) - nameLabel.Size = UDim2.new(1,0,1,0) - nameLabel.BackgroundTransparency = 1 - nameLabel.Text = targetPlayer.Name - nameLabel.TextSize = 12 - nameLabel.Font = Enum.Font.SourceSansBold - nameLabel.TextColor3 = getRainbowColor() - end - end + cooldownActive = true + cooldownLabel.Visible = true + cooldownLabel.Text = "اصبر..." + vflyBtn.BackgroundColor3 = Color3.fromRGB(255,0,0) - local function addESP() - for _,p in pairs(targetChar:GetChildren()) do - if p:IsA("BasePart") then - makeESP(p) - end - end - addName() + task.wait(1) -- ثانية واحدة + cooldownActive = false + cooldownLabel.Visible = false + cooldownLabel.Text = "" +end) + +-- زر تغيير السيرفر +local serverBtn = Instance.new("TextButton", antiFrame) +serverBtn.Size = UDim2.new(0.8,0,0,30) +serverBtn.Position = UDim2.new(0.1,0,0.85,0) +serverBtn.Text = "تغيير سيرفر" +serverBtn.Font = Enum.Font.SourceSansBold +serverBtn.TextScaled = true +serverBtn.TextColor3 = Color3.fromRGB(255,255,255) +serverBtn.BackgroundColor3 = Color3.fromRGB(255,0,0) + +serverBtn.MouseButton1Click:Connect(function() + local gameId = game.PlaceId + local servers = {} + local req = game:HttpGet("https://games.roblox.com/v1/games/"..gameId.."/servers/Public?sortOrder=Asc&limit=100") + local data = HttpService:JSONDecode(req) + for _,server in pairs(data.data) do + if server.playing < server.maxPlayers and server.id ~= game.JobId then + table.insert(servers, server.id) end + end + if #servers > 0 then + TeleportService:TeleportToPlaceInstance(gameId, servers[math.random(1,#servers)], player) + else + TeleportService:Teleport(gameId, player) + end +end) - addESP() - targetPlayer.CharacterAdded:Connect(function(char) - targetChar = char - addESP() - end) - - RunService.RenderStepped:Connect(function() - for _,b in pairs(boxes) do - b.Color3 = getRainbowColor() +-- Heartbeat لمضاد ضرب مع الانتظار على الأرض +RunService.Heartbeat:Connect(function(dt) + if character and hrp and vflyEnabled then + local pos = hrp.Position + if ascending then + local newY = math.min(pos.Y + riseSpeed*dt, targetY) + hrp.CFrame = CFrame.new(pos.X,newY,pos.Z) + if newY >= targetY-0.1 then + ascending = false + hoverStart = tick() end - if nameLabel then - nameLabel.TextColor3 = getRainbowColor() + else + if tick() - hoverStart < hoverTime then + hrp.CFrame = CFrame.new(pos.X,targetY,pos.Z) + else + local newY = math.max(pos.Y - fallSpeed*dt, startY) + hrp.CFrame = CFrame.new(pos.X,newY,pos.Z) + if newY <= startY+0.1 then + task.spawn(function() + task.wait(groundTime) + ascending = true + startY = hrp.Position.Y + targetY = startY + hoverHeight + hoverStart = tick() - hoverTime + end) + end end - end) + end end +end) - for _,p in pairs(Players:GetPlayers()) do - createRainbowESP(p) - end - Players.PlayerAdded:Connect(function(p) - p.CharacterAdded:Connect(function() - createRainbowESP(p) - end) - end) -end - --- ----- تشغيل النسخة المناسبة عند دخول الماب ----- -if hasStealItem() then - runStealScript() -elseif hasMapItem() then - run99Nights() -end +-- تحديث الشخصية بعد الموت +player.CharacterAdded:Connect(function(char) + character = char + humanoid = character:WaitForChild("Humanoid") + hrp = character:WaitForChild("HumanoidRootPart") +end)