rotating skybox tutorial (ROBLOX)

Опубликовано: 17 Май 2026
на канале: Lenny
3,345
81

devform: https://devforum.roblox.com/t/studio-...

script:
local sky = game.Lighting.Sky
local rotationSpeed = 10 -- Adjust this value to control the speed

game:GetService("RunService").Heartbeat:Connect(function(deltaTime)
sky.SkyboxOrientation = Vector3.new(45, (sky.SkyboxOrientation.Y + rotationSpeed * deltaTime) % 360, 0)
end)

-- Rotate around Y (Up) first, then apply X and Z for the tilt