I am working on an admin panel, I am adding custom themes, but anyone can pick a theme via the settings gui, I have tried this:
local player = game.Players.LocalPlayer
function GetTheme ()
print("Getting Theme: Venture")
if player.PlayerScripts:WaitForChild("VentureTheme").Value == "Light" then
return "Light"
elseif player.PlayerScripts:WaitForChild("VentureTheme").Value == "Dark" then
return "Dark"
elseif player.PlayerScripts:WaitForChild("VentureTheme").Value == "" then
print("Venture: Failed to load Theme. Using Light Mode.")
return "Light"
end
end
Feel free to help with this, thanks!