-- ScreenGui oluştur local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "NightModeSystem" ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") ScreenGui.ResetOnSpawn = false ScreenGui.IgnoreGuiInset = true -- Kenarları da kaplasın (mobil için üst çentik vb.) -- ANA KARANLIK OVERLAY (Ekranın tamamını kaplayan siyah katman) local NightOverlay = Instance.new("Frame") NightOverlay.Name = "NightOverlay" NightOverlay.Size = UDim2.new(1, 0, 1, 0) NightOverlay.Position = UDim2.new(0, 0, 0, 0) NightOverlay.BackgroundColor3 = Color3.fromRGB(0, 0, 0) NightOverlay.BackgroundTransparency = 0.3 -- Başlangıç değeri NightOverlay.BorderSizePixel = 0 NightOverlay.ZIndex = 100 NightOverlay.Parent = ScreenGui -- SARI/TURUNCU IŞIK FİLTRESİ (Blue Light Filter) local LightFilter = Instance.new("Frame") LightFilter.Name = "LightFilter" LightFilter.Size = UDim2.new(1, 0, 1, 0) LightFilter.Position = UDim2.new(0, 0, 0, 0) LightFilter.BackgroundColor3 = Color3.fromRGB(255, 160, 60) -- Turuncu/Sarı LightFilter.BackgroundTransparency = 1 -- Başlangıçta kapalı LightFilter.BorderSizePixel = 0 LightFilter.ZIndex = 101 -- Siyahın üstünde LightFilter.Parent = ScreenGui -- Blend modu için (renk karışımı) local LightFilterGradient = Instance.new("UIGradient") LightFilterGradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 200, 100)), -- Açık sarı ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 100, 30)) -- Koyu turuncu }) LightFilterGradient.Parent = LightFilter -- KONTROL PANELİ (Küçük, modern tasarım) local ControlPanel = Instance.new("Frame") ControlPanel.Name = "ControlPanel" ControlPanel.Size = UDim2.new(0, 320, 0, 180) ControlPanel.Position = UDim2.new(0.5, -160, 0.1, 0) ControlPanel.BackgroundColor3 = Color3.fromRGB(25, 25, 25) ControlPanel.BorderSizePixel = 0 ControlPanel.ZIndex = 200 ControlPanel.Parent = ScreenGui -- Yuvarlak köşeler local PanelCorner = Instance.new("UICorner") PanelCorner.CornerRadius = UDim.new(0, 16) PanelCorner.Parent = ControlPanel -- Gölge efekti local PanelShadow = Instance.new("ImageLabel") PanelShadow.Name = "Shadow" PanelShadow.AnchorPoint = Vector2.new(0.5, 0.5) PanelShadow.BackgroundTransparency = 1 PanelShadow.Position = UDim2.new(0.5, 0, 0.5, 0) PanelShadow.Size = UDim2.new(1, 40, 1, 40) PanelShadow.ZIndex = 199 PanelShadow.Image = "rbxassetid://5554236805" PanelShadow.ImageColor3 = Color3.fromRGB(0, 0, 0) PanelShadow.ImageTransparency = 0.5 PanelShadow.ScaleType = Enum.ScaleType.Slice PanelShadow.SliceCenter = Rect.new(23, 23, 277, 277) PanelShadow.Parent = ControlPanel -- Başlık çubuğu local TitleBar = Instance.new("Frame") TitleBar.Size = UDim2.new(1, 0, 0, 40) TitleBar.BackgroundColor3 = Color3.fromRGB(35, 35, 35) TitleBar.BorderSizePixel = 0 TitleBar.ZIndex = 201 TitleBar.Parent = ControlPanel local TitleCorner = Instance.new("UICorner") TitleCorner.CornerRadius = UDim.new(0, 16) TitleCorner.Parent = TitleBar -- Başlık metni local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, -90, 1, 0) Title.Position = UDim2.new(0, 15, 0, 0) Title.BackgroundTransparency = 1 Title.Text = "🌙 Gece Modu" Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextSize = 18 Title.Font = Enum.Font.GothamBold Title.TextXAlignment = Enum.TextXAlignment.Left Title.ZIndex = 202 Title.Parent = TitleBar -- Aç/Kapa Butonu local ToggleButton = Instance.new("TextButton") ToggleButton.Size = UDim2.new(0, 70, 0, 28) ToggleButton.Position = UDim2.new(1, -115, 0.5, -14) ToggleButton.BackgroundColor3 = Color3.fromRGB(0, 200, 100) ToggleButton.Text = "AKTİF" ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) ToggleButton.TextSize = 13 ToggleButton.Font = Enum.Font.GothamBold ToggleButton.ZIndex = 202 ToggleButton.Parent = TitleBar local ToggleCorner = Instance.new("UICorner") ToggleCorner.CornerRadius = UDim.new(0, 8) ToggleCorner.Parent = ToggleButton -- Kapatma butonu local CloseButton = Instance.new("TextButton") CloseButton.Size = UDim2.new(0, 28, 0, 28) CloseButton.Position = UDim2.new(1, -38, 0.5, -14) CloseButton.BackgroundColor3 = Color3.fromRGB(255, 70, 70) CloseButton.Text = "×" CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255) CloseButton.TextSize = 20 CloseButton.Font = Enum.Font.GothamBold CloseButton.ZIndex = 202 CloseButton.Parent = TitleBar local CloseCorner = Instance.new("UICorner") CloseCorner.CornerRadius = UDim.new(0, 8) CloseCorner.Parent = CloseButton -- İçerik alanı local ContentFrame = Instance.new("Frame") ContentFrame.Size = UDim2.new(1, -30, 1, -55) ContentFrame.Position = UDim2.new(0, 15, 0, 50) ContentFrame.BackgroundTransparency = 1 ContentFrame.ZIndex = 201 ContentFrame.Parent = ControlPanel -- === 1. KARANLIK SEVİYESİ KAYDIRICISI === local DarknessLabel = Instance.new("TextLabel") DarknessLabel.Size = UDim2.new(1, 0, 0, 20) DarknessLabel.BackgroundTransparency = 1 DarknessLabel.Text = "Karanlık Seviyesi: 70%" DarknessLabel.TextColor3 = Color3.fromRGB(220, 220, 220) DarknessLabel.TextSize = 14 DarknessLabel.Font = Enum.Font.GothamSemibold DarknessLabel.TextXAlignment = Enum.TextXAlignment.Left DarknessLabel.ZIndex = 202 DarknessLabel.Parent = ContentFrame -- Karanlık slider arka plan local DarknessSliderBg = Instance.new("Frame") DarknessSliderBg.Size = UDim2.new(1, 0, 0, 14) DarknessSliderBg.Position = UDim2.new(0, 0, 0, 25) DarknessSliderBg.BackgroundColor3 = Color3.fromRGB(50, 50, 50) DarknessSliderBg.BorderSizePixel = 0 DarknessSliderBg.ZIndex = 202 DarknessSliderBg.Parent = ContentFrame local DarknessSliderBgCorner = Instance.new("UICorner") DarknessSliderBgCorner.CornerRadius = UDim.new(0, 7) DarknessSliderBgCorner.Parent = DarknessSliderBg -- Karanlık slider dolgu local DarknessSliderFill = Instance.new("Frame") DarknessSliderFill.Size = UDim2.new(0.7, 0, 1, 0) DarknessSliderFill.BackgroundColor3 = Color3.fromRGB(100, 100, 100) DarknessSliderFill.BorderSizePixel = 0 DarknessSliderFill.ZIndex = 203 DarknessSliderFill.Parent = DarknessSliderBg local DarknessSliderFillCorner = Instance.new("UICorner") DarknessSliderFillCorner.CornerRadius = UDim.new(0, 7) DarknessSliderFillCorner.Parent = DarknessSliderFill -- Karanlık slider tutamacı local DarknessKnob = Instance.new("TextButton") DarknessKnob.Size = UDim2.new(0, 26, 0, 26) DarknessKnob.Position = UDim2.new(0.7, -13, 0.5, -13) DarknessKnob.BackgroundColor3 = Color3.fromRGB(255, 255, 255) DarknessKnob.Text = "" DarknessKnob.ZIndex = 204 DarknessKnob.Parent = DarknessSliderBg local DarknessKnobCorner = Instance.new("UICorner") DarknessKnobCorner.CornerRadius = UDim.new(1, 0) DarknessKnobCorner.Parent = DarknessKnob -- === 2. SARI IŞIK FİLTRESİ KAYDIRICISI === local FilterLabel = Instance.new("TextLabel") FilterLabel.Size = UDim2.new(1, 0, 0, 20) FilterLabel.Position = UDim2.new(0, 0, 0, 70) FilterLabel.BackgroundTransparency = 1 FilterLabel.Text = "Sarı Işık Filtresi: 0%" FilterLabel.TextColor3 = Color3.fromRGB(255, 200, 100) FilterLabel.TextSize = 14 FilterLabel.Font = Enum.Font.GothamSemibold FilterLabel.TextXAlignment = Enum.TextXAlignment.Left FilterLabel.ZIndex = 202 FilterLabel.Parent = ContentFrame -- Sarı slider arka plan local FilterSliderBg = Instance.new("Frame") FilterSliderBg.Size = UDim2.new(1, 0, 0, 14) FilterSliderBg.Position = UDim2.new(0, 0, 0, 95) FilterSliderBg.BackgroundColor3 = Color3.fromRGB(50, 50, 50) FilterSliderBg.BorderSizePixel = 0 FilterSliderBg.ZIndex = 202 FilterSliderBg.Parent = ContentFrame local FilterSliderBgCorner = Instance.new("UICorner") FilterSliderBgCorner.CornerRadius = UDim.new(0, 7) FilterSliderBgCorner.Parent = FilterSliderBg -- Sarı slider dolgu (Gradient) local FilterSliderFill = Instance.new("Frame") FilterSliderFill.Size = UDim2.new(0, 0, 1, 0) -- Başlangıçta 0 FilterSliderFill.BackgroundColor3 = Color3.fromRGB(255, 180, 50) FilterSliderFill.BorderSizePixel = 0 FilterSliderFill.ZIndex = 203 FilterSliderFill.Parent = FilterSliderBg local FilterSliderFillCorner = Instance.new("UICorner") FilterSliderFillCorner.CornerRadius = UDim.new(0, 7) FilterSliderFillCorner.Parent = FilterSliderFill -- Gradient efekti sarı slider için local FilterFillGradient = Instance.new("UIGradient") FilterFillGradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 220, 100)), -- Açık sarı ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 140, 30)) -- Koyu turuncu }) FilterFillGradient.Parent = FilterSliderFill -- Sarı slider tutamacı local FilterKnob = Instance.new("TextButton") FilterKnob.Size = UDim2.new(0, 26, 0, 26) FilterKnob.Position = UDim2.new(0, -13, 0.5, -13) FilterKnob.BackgroundColor3 = Color3.fromRGB(255, 200, 80) FilterKnob.Text = "" FilterKnob.ZIndex = 204 FilterKnob.Parent = FilterSliderBg local FilterKnobCorner = Instance.new("UICorner") FilterKnobCorner.CornerRadius = UDim.new(1, 0) FilterKnobCorner.Parent = FilterKnob -- Tutamak gölgesi local FilterKnobGlow = Instance.new("ImageLabel") FilterKnobGlow.BackgroundTransparency = 1 FilterKnobGlow.Position = UDim2.new(0.5, -20, 0.5, -20) FilterKnobGlow.Size = UDim2.new(0, 40, 0, 40) FilterKnobGlow.Image = "rbxassetid://5554236805" FilterKnobGlow.ImageColor3 = Color3.fromRGB(255, 180, 50) FilterKnobGlow.ImageTransparency = 0.6 FilterKnobGlow.ScaleType = Enum.ScaleType.Slice FilterKnobGlow.SliceCenter = Rect.new(23, 23, 277, 277) FilterKnobGlow.ZIndex = 203 FilterKnobGlow.Parent = FilterKnob -- FONKSİYONLAR local isNightMode = true local currentDarkness = 0.3 -- 0 = tam siyah, 1 = şeffaf local currentFilter = 0 -- 0 = kapalı, 1 = tam sarı -- Karanlık slider güncelleme function updateDarkness(value) value = math.clamp(value, 0, 1) currentDarkness = value if isNightMode then NightOverlay.BackgroundTransparency = value end DarknessSliderFill.Size = UDim2.new(1 - value, 0, 1, 0) DarknessKnob.Position = UDim2.new(1 - value, -13, 0.5, -13) local percentage = math.round((1 - value) * 100) DarknessLabel.Text = "Karanlık Seviyesi: " .. percentage .. "%" -- Gri tonundan siyaha geçiş local grayValue = math.floor(100 + (1 - value) * 155) DarknessSliderFill.BackgroundColor3 = Color3.fromRGB(grayValue, grayValue, grayValue) end -- Sarı filtre slider güncelleme function updateFilter(value) value = math.clamp(value, 0, 1) currentFilter = value LightFilter.BackgroundTransparency = 1 - (value * 0.7) -- Max 0.3 opaklık (hafif olsun) FilterSliderFill.Size = UDim2.new(value, 0, 1, 0) FilterKnob.Position = UDim2.new(value, -13, 0.5, -13) local percentage = math.round(value * 100) FilterLabel.Text = "Sarı Işık Filtresi: " .. percentage .. "%" -- Tutamak rengi değişimi local r = 255 local g = math.floor(200 - (value * 60)) -- 200 -> 140 (sarıdan turuncuya) local b = math.floor(100 - (value * 70)) -- 100 -> 30 FilterKnob.BackgroundColor3 = Color3.fromRGB(r, g, b) end -- Toggle fonksiyonu ToggleButton.MouseButton1Click:Connect(function() isNightMode = not isNightMode if isNightMode then ToggleButton.Text = "AKTİF" ToggleButton.BackgroundColor3 = Color3.fromRGB(0, 200, 100) NightOverlay.Visible = true LightFilter.Visible = true updateDarkness(currentDarkness) updateFilter(currentFilter) else ToggleButton.Text = "PASİF" ToggleButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50) NightOverlay.Visible = false LightFilter.Visible = false DarknessLabel.Text = "Karanlık: Kapalı" FilterLabel.Text = "Filtre: Kapalı" end end) -- Slider sürükleme sistemleri local UserInputService = game:GetService("UserInputService") -- Karanlık slider local draggingDarkness = false DarknessKnob.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then draggingDarkness = true end end) DarknessSliderBg.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then local pos = math.clamp((input.Position.X - DarknessSliderBg.AbsolutePosition.X) / DarknessSliderBg.AbsoluteSize.X, 0, 1) updateDarkness(1 - pos) draggingDarkness = true end end) -- Sarı filtre slider local draggingFilter = false FilterKnob.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then draggingFilter = true end end) FilterSliderBg.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then local pos = math.clamp((input.Position.X - FilterSliderBg.AbsolutePosition.X) / FilterSliderBg.AbsoluteSize.X, 0, 1) updateFilter(pos) draggingFilter = true end end) -- Input değişimleri UserInputService.InputChanged:Connect(function(input) if draggingDarkness and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then local pos = math.clamp((input.Position.X - DarknessSliderBg.AbsolutePosition.X) / DarknessSliderBg.AbsoluteSize.X, 0, 1) updateDarkness(1 - pos) end if draggingFilter and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then local pos = math.clamp((input.Position.X - FilterSliderBg.AbsolutePosition.X) / FilterSliderBg.AbsoluteSize.X, 0, 1) updateFilter(pos) end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then draggingDarkness = false draggingFilter = false end end) -- Panel sürükleme local panelDragging = false local dragStart = nil local startPos = nil TitleBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then panelDragging = true dragStart = input.Position startPos = ControlPanel.Position end end) UserInputService.InputChanged:Connect(function(input) if panelDragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then local delta = input.Position - dragStart ControlPanel.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then panelDragging = false end end) -- Kapatma butonu CloseButton.MouseButton1Click:Connect(function() ScreenGui:Destroy() end) -- Başlangıç ayarları updateDarkness(0.3) updateFilter(0) -- Klavye kısayolu (N tuşu) UserInputService.InputBegan:Connect(function(input, gameProcessed) if not gameProcessed and input.KeyCode == Enum.KeyCode.N then ToggleButton.MouseButton1Click:Fire() end end)