Aprender
Clase de motor
Sky

*Este contenido se traduce usando la IA (Beta) y puede contener errores. Para ver esta página en inglés, haz clic en aquí.



Referencia API
Propiedades
CelestialBodiesShown
Leer paralelo
Capacidades: Environment
Sky.CelestialBodiesShown:boolean

MoonAngularSize
Leer paralelo
Capacidades: Environment
Sky.MoonAngularSize:number

MoonTextureContent
Leer paralelo
Capacidades: Environment
Sky.MoonTextureContent:Content

MoonTextureId
Leer paralelo
Capacidades: Environment
Sky.MoonTextureId:ContentId

SkyboxBackContent
Leer paralelo
Capacidades: Environment
Sky.SkyboxBackContent:Content

SkyboxBk
Leer paralelo
Capacidades: Environment
Sky.SkyboxBk:ContentId

SkyboxDn
Leer paralelo
Capacidades: Environment
Sky.SkyboxDn:ContentId

SkyboxDownContent
Leer paralelo
Capacidades: Environment
Sky.SkyboxDownContent:Content

SkyboxFrontContent
Leer paralelo
Capacidades: Environment
Sky.SkyboxFrontContent:Content

SkyboxFt
Leer paralelo
Capacidades: Environment
Sky.SkyboxFt:ContentId

SkyboxLeftContent
Leer paralelo
Capacidades: Environment
Sky.SkyboxLeftContent:Content

SkyboxLf
Leer paralelo
Capacidades: Environment
Sky.SkyboxLf:ContentId

SkyboxOrientation
Leer paralelo
Capacidades: Environment
Sky.SkyboxOrientation:Vector3
Muestras de código
Orientación del cielo con Tween
local Lighting = game:GetService("Lighting")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local sky = Lighting:FindFirstChild("Sky")
local ROTATION_SPEED = 4 -- En grados por segundo
local MAX_TILT = 2 -- En grados
local TILT_SPEED = 4
local currentTilt = Instance.new("NumberValue")
currentTilt.Value = -MAX_TILT
local tweenGoal = { Value = MAX_TILT }
local tweenInfo = TweenInfo.new(TILT_SPEED, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, -1, true)
local tween = TweenService:Create(currentTilt, tweenInfo, tweenGoal)
tween:Play()
RunService.Heartbeat:Connect(function(deltaTime)
sky.SkyboxOrientation =
Vector3.new(currentTilt.Value, (sky.SkyboxOrientation.Y + ROTATION_SPEED * deltaTime) % 360, 0)
end)

SkyboxRightContent
Leer paralelo
Capacidades: Environment
Sky.SkyboxRightContent:Content

SkyboxRt
Leer paralelo
Capacidades: Environment
Sky.SkyboxRt:ContentId

SkyboxUp
Leer paralelo
Capacidades: Environment
Sky.SkyboxUp:ContentId

SkyboxUpContent
Leer paralelo
Capacidades: Environment
Sky.SkyboxUpContent:Content

StarCount
Leer paralelo
Capacidades: Environment
Sky.StarCount:number

SunAngularSize
Leer paralelo
Capacidades: Environment
Sky.SunAngularSize:number

SunTextureContent
Leer paralelo
Capacidades: Environment
Sky.SunTextureContent:Content

SunTextureId
Leer paralelo
Capacidades: Environment
Sky.SunTextureId:ContentId

©2026 Roblox Corporation. Roblox, el logotipo de Roblox y "Powering Imagination" son algunas de nuestras marcas registradas y no registradas en los Estados Unidos y otros países.