local player = game.Players.LocalPlayer local TweenService = game:GetService("TweenService") local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui")) screenGui.ResetOnSpawn = false -- Animatsiya funksiyasi local function animateClick(obj) local tweenInfo = TweenInfo.new(0.1, Enum.EasingStyle.Quad) local shrink = TweenService:Create(obj, tweenInfo, {Size = obj.Size - UDim2.new(0, 5, 0, 5)}) local grow = TweenService:Create(obj, tweenInfo, {Size = obj.Size}) obj.MouseButton1Down:Connect(function() shrink:Play() end) obj.MouseButton1Up:Connect(function() grow:Play() end) end -- Asosiy Frame local mainFrame = Instance.new("Frame", screenGui) mainFrame.Size = UDim2.new(0.2, 0, 0.3, 0) mainFrame.Position = UDim2.new(1.2, 0, 0.2, 0) mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) mainFrame.Visible = false mainFrame.Active = true mainFrame.Draggable = true Instance.new("UICorner", mainFrame).CornerRadius = UDim.new(0, 20) -- X tugmasi local closeBtn = Instance.new("TextButton", mainFrame) closeBtn.Size = UDim2.new(0, 30, 0, 30) closeBtn.Position = UDim2.new(1, -35, 0, 5) closeBtn.Text = "X" closeBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0) closeBtn.TextColor3 = Color3.new(1, 1, 1) closeBtn.Font = Enum.Font.GothamBold Instance.new("UICorner", closeBtn).CornerRadius = UDim.new(0, 8) -- Layout local layout = Instance.new("UIListLayout", mainFrame) layout.Padding = UDim.new(0, 20) layout.HorizontalAlignment = Enum.HorizontalAlignment.Center layout.VerticalAlignment = Enum.VerticalAlignment.Center -- Platforma tugmasi (Oddiy part bilan ishlaydigan) local platBtn = Instance.new("TextButton", mainFrame) platBtn.Size = UDim2.new(0.85, 0, 0, 50) platBtn.Text = "PLATFORM: OFF" platBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0) platBtn.TextColor3 = Color3.new(1, 1, 1) platBtn.Font = Enum.Font.GothamBold Instance.new("UICorner", platBtn).CornerRadius = UDim.new(0, 10) animateClick(platBtn) -- MENU Tugmasi local openBtn = Instance.new("TextButton", screenGui) openBtn.Text = "MENU" openBtn.Size = UDim2.new(0, 100, 0, 50) openBtn.Position = UDim2.new(0.02, 0, 0.3, 0) openBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 40) openBtn.TextColor3 = Color3.new(1, 1, 1) openBtn.Font = Enum.Font.GothamBold Instance.new("UICorner", openBtn).CornerRadius = UDim.new(0, 15) animateClick(openBtn) openBtn.MouseButton1Click:Connect(function() mainFrame.Visible = true mainFrame:TweenPosition(UDim2.new(0.75, 0, 0.2, 0), "Out", "Back", 0.5) end) closeBtn.MouseButton1Click:Connect(function() mainFrame:TweenPosition(UDim2.new(1.2, 0, 0.2, 0), "In", "Back", 0.5, true, function() mainFrame.Visible = false end) end) -- Barcha o'yinchilarning boshida Good Boy / Bad Boy statusini chiqarish tizimi local function setupStatus(targetPlayer) if not targetPlayer.Character then return end local head = targetPlayer.Character:FindFirstChild("Head") if not head then return end -- Oldingi tagni tozalash if head:FindFirstChild("StatusTag") then head.StatusTag:Destroy() end local billboard = Instance.new("BillboardGui") billboard.Name = "StatusTag" billboard.Size = UDim2.new(0, 150, 0, 50) billboard.StudsOffset = Vector3.new(0, 2, 0) billboard.AlwaysOnTop = true billboard.Parent = head local textLabel = Instance.new("TextLabel") textLabel.Size = UDim2.new(1, 0, 1, 0) textLabel.BackgroundTransparency = 1 textLabel.TextScaled = true textLabel.Font = Enum.Font.GothamBold textLabel.Parent = billboard -- Tekshirish: Script ishlayaptimi yoki yo'q local isUsingScript = targetPlayer:GetAttribute("UsingScript") == true if isUsingScript then textLabel.Text = "Good Boy" textLabel.TextColor3 = Color3.fromRGB(0, 255, 0) -- Yashil else textLabel.Text = "Bad Boy" textLabel.TextColor3 = Color3.fromRGB(255, 0, 0) -- Qizil end end -- Hozirgi o'yinchi uchun script ishlayotganini belgilash player:SetAttribute("UsingScript", false) local isPlat = false platBtn.MouseButton1Click:Connect(function() isPlat = not isPlat platBtn.Text = isPlat and "PLATFORM: ON" or "PLATFORM: OFF" platBtn.BackgroundColor3 = isPlat and Color3.fromRGB(0, 200, 0) or Color3.fromRGB(200, 0, 0) -- Script yoqilganligini belgilaymiz player:SetAttribute("UsingScript", isPlat) task.spawn(function() while isPlat do local p = Instance.new("Part", workspace) p.Size = Vector3.new(10, 0.1, 10) p.Position = player.Character.HumanoidRootPart.Position - Vector3.new(0, 3, 0) p.Anchored = true p.Color = Color3.fromRGB(200, 200, 200) -- Oddiy part rangi game.Debris:AddItem(p, 3) task.wait(0.2) end end) end) -- Har safar o'yinchi spawn bo'lganda va doimiy ravishda statusni yangilab turish game:GetService("RunService").RenderStepped:Connect(function() for _, p in ipairs(game.Players:GetPlayers()) do if p.Character and p.Character:FindFirstChild("Head") then local head = p.Character.Head if not head:FindFirstChild("StatusTag") then setupStatus(p) else local textLabel = head.StatusTag:FindFirstChild("TextLabel") if textLabel then local active = p:GetAttribute("UsingScript") == true if active then textLabel.Text = "Good Boy" textLabel.TextColor3 = Color3.fromRGB(0, 255, 0) else textLabel.Text = "Bad Boy" textLabel.TextColor3 = Color3.fromRGB(255, 0, 0) end end end end end end)