#Skybox
1 messages · Page 1 of 1 (latest)
https://create.roblox.com/docs/environment/skybox This should help
Mhh, it can help but it doesn't look the same cause in Nullscape (the same for Roguesweeper) the skybox remains the same in each direction even tho it spins (idk if I explained correctly, I am bad at english lol)
can you give an example?
Like a video? Im not on pc right now
So you mean like the sky box rotates with the kamera ?
i see
I never really did this but I do think that you can get the Orientation of the Camera and then just set that orientation to the orientation of the sky box. And to get the extra spinning effect you just give it some extra orientation
Good luck. This is just a hunch on how it might work so don't expect it to work flawlessly
Okay so, I might be stupid but, how does this not work? Can ye help me ?
```lua
local Camera = game.Workspace.Camera
local Lightning = game.Lighting
local Sky = Lightning:WaitForChild("Sky")
Sky.SkyboxOrientation.Y = Camera.CFrame
Sky.SkyboxOrientation.X = Camera.CFrame
CFrame is a 7 digits value so maybe try setting it to Camera.CFrame.Rotation.X and Camera.CFrame.Rotation.Y
nope doesn't work
i lowk don't know if this will work but
```lua
local Camera = game.Workspace.Camera
local Lightning = game.Lighting
local Sky = Lightning:WaitForChild("Sky")
local RunService = game:GetService("RunService")
RunService.RenderStepped:Connect(function()
Sky.SkyboxOrientation = Vector3.new(Camera.CFrame.Rotation.X, Camera.CFrame.Rotation.Y, 0)
end)
and ofc you have to repeat that so it doesn't just set it to the position once
since skybox orientation is a vector value
iirc the xyz variables are read only in vectors
nop, I tried it and doesn't work, unfortunely :(
** You are now Level 3! **
i haven't really worked with skyboxes so this is just made with base docs that I flew over
does it return any errors in console? or does it just not do anything at all
oh
** You are now Level 2! **
idk how to help then twin
Tuff. Send the end result once you got it. Im interested in how to do it.