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

The "ON" Button Broken when you disable Bloom?

Asked by 1 year ago

Im making a game that includes bloom and im trying to make a setting that disables and turns it on for pcs that are not as good, but the "ON" button does not work when you turn it off. This is the code for it:

local Bloom = game.Lighting.Bloom


script.Parent.MouseButton1Down:Connect(function()

    Bloom.Intensity = 0.2
    Bloom.Size = 17
    Bloom.Threshold = 0.8

end)

1 answer

Log in to vote
0
Answered by 1 year ago

Instead of changing the properties of the Bloom, try using Enabled instead. It allows you to enable or disable the bloom without the properties being affected.

local Bloom = game.Lighting.Bloom

script.Parent.MouseButton1Down:Connect(function()
    Bloom.Enabled = true
end)
0
thank you i think i was just being stupid PeterParker17386 16 — 1y
0
happens to the best of us loowa_yawn 383 — 1y
Ad

Answer this question