Hello, i have issues trying to make a Decal change based on the player’s selected language. This is my code:
game:GetService("LocalizationService")
Decal = workspace.Lobby.Design.ZonaPVP.PvP_Instructions.ClassExplication.GameTip3
if game:GetService("LocalizationService").RobloxLocaleId == "en-us" then --es-es
Decal.Texture = "http://www.roblox.com/asset/?id=10452776679"
Decal.Face = "Left"
end
As of right now, this code works. The decal image changes. My problem is that i want this image change to be for Spanish users and when i change my language in the Roblox Site to Spanish and then go back to Studio, the RobloxLocaleId in the LocalizationService properties still shows “en-us” no matter what.
I have the selected language in Spanish but still shows as en-us inside Studio
I’ve been researching and testing other ways but im still stuck.
My language is set to Spanish in the website. Also tried putting it in Spanish in Studio.
This is my code (also added a print to see what the RobloxLocaleID returns):
local LocalizationService = game:GetService("LocalizationService")
Decal = workspace.Lobby.Design.ZonaPVP.PvP_Instructions.ClassExplication.GameTip3
local RobloxLocaleId = LocalizationService.RobloxLocaleId
print(LocalizationService.RobloxLocaleId)
if RobloxLocaleId == "es-es" then --es-es --es
Decal.Texture = "http://www.roblox.com/asset/?id=10452776679"
Decal.Face = "Left"
end
And this is the ouput regardless of my settings:
Any other ideas? Or could anyone test the same script just changing the image id, in a baseplate and see if they face the same issue? help is appreciated