Sky

Show Deprecated

The Sky object is an object that, when placed inside Lighting, will change the appearance of the game's sky. This allows for a custom sky to be used as opposed to the Roblox default sky. The Skybox is composed of six sides, much like that of a cube. If the skybox is changed/customised, the Sun and other objects in the sky will remain visible, unless you turn off the Sky object's Sky.CelestialBodiesShown property, which will remove the Sun, Moon, and stars from the sky. The recommended picture dimensions for a Skybox side are 256x256 pixels. By adjusting the Sky.StarCount property of the Sky object, you can change how many stars will appear in the sky at night.

Summary

Properties

Sets whether the Sun, Moon, and stars will show.

The perceived angular size of the moon while using this skybox, in degrees.

The texture of the moon while using this skybox.

The URL link to a picture for the back surface of the sky.

The URL asset link to a picture for the Bottom surface of the sky.

The URL link to a picture for the front surface of the skybox.

The URL link to a picture for the left surface of the sky.

The URL link to a picture for the right surface of the sky.

The URL link to a picture for the top surface of the sky.

How many stars are shown in the skybox.

The perceived angular size of the sun while using this skybox, in degrees.

The texture of the sun while using this skybox.

Events

Methods

Properties

CelestialBodiesShown

Sets whether the Sun, Moon, and stars will show.

MoonAngularSize

The perceived angular size of the moon while using this skybox, in degrees.

MoonTextureId

The texture of the moon while using this skybox.

SkyboxBk

The URL link to a picture for the back surface of the sky.

SkyboxDn

The URL asset link to a picture for the Bottom surface of the sky.

SkyboxFt

The URL link to a picture for the front surface of the skybox.

SkyboxLf

The URL link to a picture for the left surface of the sky.

SkyboxRt

The URL link to a picture for the right surface of the sky.

SkyboxUp

The URL link to a picture for the top surface of the sky.

StarCount

How many stars are shown in the skybox. Note that too many stars may cause severe lag. Only works if Sky.CelestialBodiesShown is true.

SunAngularSize

The perceived angular size of the sun while using this skybox, in degrees.

SunTextureId

The texture of the sun while using this skybox.

Events

Methods