I’m trying to make a script with a day/night cycle but also changes the textures of the moon, My issue is that I can’t change the texture of the moon if its in local or server sided script. I did look in the developer hub but I might have missed something.
I tried this out, and it seems to be an issue with your moon texture itself. Maybe it hasn’t been accepted by ROBLOX yet or something. I tested it with a different texture and it worked.
Did you change the moon texture through a script or through the Sky in lighting? It works when I manually change the moon texture in sky in lighting but I am trying to change it with script
Yeah same I am not getting any errors although the texture for the moon is blank, I also have a print that tells me the texture of the moon after I change it and it says its the new one.
I just tried using a entirely different texture made by someone else that has been out for a year but the moon texture is still blank. The print also says that the texture id is the one that I am trying to change it to?
I just opened a new place, then put in a script in ServerScriptService with this but when it sets the id the moon texture disappears entirely, Could you show me how you got yours to work?
local Lighting = game:WaitForChild("Lighting")
task.wait(10)
Lighting.Sky.MoonTextureId = "rbxassetid://7584450045"
I think I found the issue, The textures that work are an Image type while the ones I tried were decal, Can you help me find out how to make a decal into a Image? Edit:I have a plugin that allows me to get the Image version of a decal and the issue is solved, Thank you for helping. I also think its weird that there were no errors.
There currently is no way to convert inside of roblox studio… but if this is an image you have, then convert it outside of roblox and re-upload it. Otherwise, search instead for an image to use.