Aprenda
Classe do mecanismo
Sky

*Este conteúdo é traduzido por IA (Beta) e pode conter erros. Para ver a página em inglês, clique aqui.



Referência API
Propriedades
CelestialBodiesShown
Ler Parallel
Recursos: Environment
Sky.CelestialBodiesShown:boolean

MoonAngularSize
Ler Parallel
Recursos: Environment
Sky.MoonAngularSize:number

MoonTextureContent
Ler Parallel
Recursos: Environment
Sky.MoonTextureContent:Content

MoonTextureId
Ler Parallel
Recursos: Environment
Sky.MoonTextureId:ContentId

SkyboxBackContent
Ler Parallel
Recursos: Environment
Sky.SkyboxBackContent:Content

SkyboxBk
Ler Parallel
Recursos: Environment
Sky.SkyboxBk:ContentId

SkyboxDn
Ler Parallel
Recursos: Environment
Sky.SkyboxDn:ContentId

SkyboxDownContent
Ler Parallel
Recursos: Environment
Sky.SkyboxDownContent:Content

SkyboxFrontContent
Ler Parallel
Recursos: Environment
Sky.SkyboxFrontContent:Content

SkyboxFt
Ler Parallel
Recursos: Environment
Sky.SkyboxFt:ContentId

SkyboxLeftContent
Ler Parallel
Recursos: Environment
Sky.SkyboxLeftContent:Content

SkyboxLf
Ler Parallel
Recursos: Environment
Sky.SkyboxLf:ContentId

SkyboxOrientation
Ler Parallel
Recursos: Environment
Sky.SkyboxOrientation:Vector3
Amostras de código
Orientação do Skybox com 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 -- Em graus por segundo
local MAX_TILT = 2 -- Em graus
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
Ler Parallel
Recursos: Environment
Sky.SkyboxRightContent:Content

SkyboxRt
Ler Parallel
Recursos: Environment
Sky.SkyboxRt:ContentId

SkyboxUp
Ler Parallel
Recursos: Environment
Sky.SkyboxUp:ContentId

SkyboxUpContent
Ler Parallel
Recursos: Environment
Sky.SkyboxUpContent:Content

StarCount
Ler Parallel
Recursos: Environment
Sky.StarCount:number

SunAngularSize
Ler Parallel
Recursos: Environment
Sky.SunAngularSize:number

SunTextureContent
Ler Parallel
Recursos: Environment
Sky.SunTextureContent:Content

SunTextureId
Ler Parallel
Recursos: Environment
Sky.SunTextureId:ContentId

©2026 Roblox Corporation, Roblox, o logotipo Roblox e Powering Imagination estão entre nossas marcas registradas e não registradas nos EUA e em outros países.