How to check users studio theme

How do I check if a users studio theme is set as dark or light? I am making a plugin and I want it to change depending on their theme.

I tried a few solutions on older forum posts but they didn’t work and I didn’t get errors from either of them in the output.

Thank you.

Movie you have to download Roblox studio

I dont understand, what are you trying to say?

ignore‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎

I seen it work with some other plugins, such as Atmos.

This is false.

@Ryanogic Read here Studio.Theme

If you read the topic I said that this is for my plugin.

1 Like

@OP wanted it to work in studio for a plugin

oh im dumb sorry. :melting_face:‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎

Can I implement it like this:

if settings().Studio.Theme == “Light” then

end

Yes that code returns a string

Alright thanks, is there any way to check for when the theme is changed or do I just loop it?

Thanks, I marked it as the solution.

1 Like

there is an event for this

settings().Studio.ThemeChanged:Connect(function()
    print(settings().Studio.Theme)
end)
1 Like

Oh thank you, could I use it like this?

settings().Studio.ThemeChanged:Connect(function()
    if settings().Studio.Theme == “Dark” then
    
    elseif settings().Studio.Theme == “Light” then

    end
end)

Yes that’s an event so you just need to connect a function