Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why does my main menu display really dark?

Asked by 3 years ago

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

Log in to vote
0
Answered by 3 years ago

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.

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. MrAwesomeOwl_47 9 — 3y
Ad

Answer this question