local Lighting = game:GetService("Lighting") local Workspace = game:GetService("Workspace") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local Camera = Workspace.CurrentCamera local blur = Instance.new("BlurEffect", Lighting) local sunRays = Instance.new("SunRaysEffect", Lighting) local colorCorrection = Instance.new("ColorCorrectionEffect", Lighting) local bloom = Instance.new("BloomEffect", Lighting) local depthOfField = Instance.new("DepthOfFieldEffect", Lighting) local enabled = true local function applyRTX() sunRays.Intensity = 0.25 sunRays.Spread = 0.7 colorCorrection.Brightness = 0.1 colorCorrection.Contrast = 0.15 colorCorrection.Saturation = 0.25 colorCorrection.TintColor = Color3.fromRGB(255, 255, 255) bloom.Intensity = 0.8 bloom.Size = 64 bloom.Threshold = 0.85 depthOfField.FarIntensity = 0.05 depthOfField.FocusDistance = 100 depthOfField.InFocusRadius = 30 depthOfField.NearIntensity = 0.1 Lighting.GlobalShadows = true Lighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128) Lighting.ShadowSoftness = 0.2 Lighting.EnvironmentDiffuseScale = 1 Lighting.EnvironmentSpecularScale = 1 Workspace.StreamingEnabled = false end local function removeRTX() sunRays.Intensity = 0 colorCorrection.Brightness = 0 colorCorrection.Contrast = 0 colorCorrection.Saturation = 0 bloom.Intensity = 0 depthOfField.FarIntensity = 0 depthOfField.NearIntensity = 0 blur.Size = 0 Lighting.GlobalShadows = false Lighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128) Lighting.ShadowSoftness = 0.5 Lighting.EnvironmentDiffuseScale = 0.5 Lighting.EnvironmentSpecularScale = 0.5 Workspace.StreamingEnabled = true end applyRTX() local lastCFrame = Camera.CFrame RunService.RenderStepped:Connect(function() if enabled then local current = Camera.CFrame local posDiff = (current.Position - lastCFrame.Position).Magnitude local rotDiff = 1 - math.abs(current.LookVector:Dot(lastCFrame.LookVector)) local intensity = (posDiff + rotDiff) * 10 blur.Size = math.clamp(intensity, 0, 10) end lastCFrame = Camera.CFrame end) local gui = Instance.new("ScreenGui", game.CoreGui) gui.ResetOnSpawn = false gui.IgnoreGuiInset = true local vignette = Instance.new("ImageLabel", gui) vignette.Size = UDim2.new(1, 0, 1, 0) vignette.Position = UDim2.new(0, 0, 0, 0) vignette.BackgroundTransparency = 1 vignette.Image = "rbxassetid://7870311025" vignette.ImageColor3 = Color3.new(0, 0, 0) vignette.ImageTransparency = 0.5 vignette.ScaleType = Enum.ScaleType.Stretch vignette.ZIndex = 1 local frame = Instance.new("Frame", gui) frame.Size = UDim2.new(0, 120, 0, 40) frame.Position = UDim2.new(1, -130, 0, 10) frame.BackgroundColor3 = Color3.fromRGB(60, 60, 60) frame.Active = true frame.ZIndex = 2 local dragging local dragInput local dragStart local startPos frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) frame.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then local delta = input.Position - dragStart frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) local toggle = Instance.new("TextButton", frame) toggle.Size = UDim2.new(1, 0, 1, 0) toggle.BackgroundColor3 = Color3.fromRGB(100, 100, 100) toggle.Text = "RTX: ON" toggle.TextColor3 = Color3.fromRGB(255, 255, 255) toggle.Font = Enum.Font.SourceSansBold toggle.TextSize = 20 toggle.ZIndex = 3 toggle.MouseButton1Click:Connect(function() enabled = not enabled toggle.Text = enabled and "RTX: ON" or "RTX: OFF" vignette.Visible = enabled if enabled then applyRTX() else removeRTX() end end)