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.
Eac12a
(asimo3080)
#2
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.
Ryanogic
(ryan)
#12
Can I implement it like this:
if settings().Studio.Theme == “Light” then
end
Yes that code returns a string
Ryanogic
(ryan)
#14
Alright thanks, is there any way to check for when the theme is changed or do I just loop it?
Ryanogic
(ryan)
#16
Thanks, I marked it as the solution.
1 Like
vParkuu
(_)
#17
there is an event for this
settings().Studio.ThemeChanged:Connect(function()
print(settings().Studio.Theme)
end)
1 Like
Ryanogic
(ryan)
#18
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