Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does my main menu display really dark?

I have never really made a main menu before, so this is kind of new to me

Anyway, I'm trying to make a main menu and it works fine, except that when I actually get into the game it looks much darker and much more contrasted than it should.

The script that manages the menu is here:

--service getting
ws = game:GetService("Workspace")

--other vars
local player = game.Players.LocalPlayer
local character = player.CharacterAdded
local Mouse = player:GetMouse()
local camera = ws.CurrentCamera
local defaultCFrame = camera.CFrame
local view = 150
local blur = game.Lighting.Blur
local colorCorrection = game.Lighting.black1

--everything else
blur.Size = 24
colorCorrection.Enabled = false

function updateCamera()
	camera.CFrame = ws.mainMenu.menuCamera.CFrame
end

game:GetService("RunService").RenderStepped:Connect(updateCamera)

script.Parent.Frame.playButton.MouseButton1Click:Connect(function()
	wait(0.2)
	blur.Size = 0
	camera.CameraType = Enum.CameraType.Custom
	colorCorrection.Enabled = false
	script.Parent.Frame:Destroy()
	script:Destroy()
end)

Also, I know that this is not because any of the camera effects because the issue persisted even if the camera effects were never enabled.

1 answer

I recommend you look at the Lighting to see if any effects might have been added in there. From what I can tell the error shouldn't be occurring. Please let me know if this error persists and I would be glad to help you.

1 comment

0

Yeah, I looked in lighting and the only things in there are the two effects used by the script. Also to clarify, It's only the background of the menu that's having this issue. The actual GUI is fine.

This discussion is preserved as it was. New answers, comments, and votes are closed.