#all i need is a part that "simulates a skybox". (read message)

1 messages · Page 1 of 1 (latest)

boreal current
#

I am making a backrooms-game, and im working on the poolrooms, and i want to add multiple layers/levels and such! But seeing as i have a LOT of windows in the poolrooms, I need a way of simulating "emptyness" and like... a skybox! Just a simple blank, Realistic skybox with no clouds, sun, or anything!

But idk how to do that! All i need is a part to simulate a skybox inside of it, that i can put in the place of the windows, so it doesnt show the upper-level/layer

Kinda like this (image1), With the roof being a parallax-effect skybox!
IDK WHICH TAG TO USE THO, SO ILL TRY TO GET THE RIGHT ONE

#

also, Imagine in this image ^^^^^^^^
that there will be a built above it, While only the skybox is visable!

glad canyon
#

Hey there, this can be done with BillboardGUI / SurfaceGUI, specifically viewport frame. I recommend you do some research on them.

#

Viewportframe can get you an actual fake "3D" skybox. Or you can use surfaceGUI for a simple 2D image

boreal current
#

I tried it already... But idk how to get it to work? Is there like a publically available example code i can use?

#

I am just bad at coding and all the complex stuff

#

XD

glad canyon
#

Ngl, I don't really work with GUI a lot, but for scripting this level, you can probably ask Grok or ChatGPT for help

#

Here's some example:

boreal current
glad canyon
boreal current
#

:3

glad canyon
#

This one is pretty advanced, but this is how it can look if you done it correctly

#

Well, this is my extend I can help. I don't think I can give you much deeper advice on GUI stuffs, Goodluck out there though. They're many skilled scripters who could help you

boreal current
prime basinBOT
#

studio** You are now Level 1! **studio

boreal current
#

And thats also fun :3

boreal current
#

This is what i got, The LocalScript says

local viewport = script.Parent:WaitForChild("ViewportFrame")
local camera = script.Parent:WaitForChild("Camera")
viewport.CurrentCamera = camera

-- Skybox IDs (Roblox default)
local SKYBOX_IDS = {
    Top = "rbxassetid://1213421526",    -- Top
    Bottom = "rbxassetid://1213421623", -- Bottom
    Front = "rbxassetid://1213421704",  -- Front
    Back = "rbxassetid://1213421818",   -- Back
    Left = "rbxassetid://1213421902",   -- Left
    Right = "rbxassetid://1213421992",  -- Right
}

-- Size of the skybox cube
local size = 500

-- Function to create a face
local function createFace(name, id)
    local part = Instance.new("Part")
    part.Name = name
    part.Size = Vector3.new(size, size, 1)
    part.Anchored = true
    part.CanCollide = false
    part.Material = Enum.Material.SmoothPlastic

    -- Add decal to show the texture
    local decal = Instance.new("Decal")
    decal.Face = Enum.NormalId.Front
    decal.Texture = id
    decal.Parent = part

    return part
end

-- Create faces
local top = createFace("Top", SKYBOX_IDS.Top)
top.CFrame = CFrame.new(0, size/2, 0) * CFrame.Angles(math.rad(-90),0,0)

local bottom = createFace("Bottom", SKYBOX_IDS.Bottom)
bottom.CFrame = CFrame.new(0, -size/2, 0) * CFrame.Angles(math.rad(90),0,0)

local front = createFace("Front", SKYBOX_IDS.Front)
front.CFrame = CFrame.new(0, 0, -size/2)

local back = createFace("Back", SKYBOX_IDS.Back)
back.CFrame = CFrame.new(0, 0, size/2) * CFrame.Angles(0, math.rad(180),0)

local left = createFace("Left", SKYBOX_IDS.Left)
left.CFrame = CFrame.new(-size/2, 0, 0) * CFrame.Angles(0, math.rad(90),0)

local right = createFace("Right", SKYBOX_IDS.Right)
right.CFrame = CFrame.new(size/2, 0, 0) * CFrame.Angles(0, math.rad(-90),0)

-- Parent faces to viewport
for _, face in pairs({top, bottom, front, back, left, right}) do
    face.Parent = viewport
end

-- Put camera inside the skybox
camera.CFrame = CFrame.new(0, 0, 0)
#

and it DOESNT WORK

#

there is a white frame on the thing!

#

on the part!

#

AAAAAAAAA

#

help 😭

#

i hate this sm 😭

#

i just want THESE WINDOWS To SHOW THE SKY, WITHOUT SHOWING THE PART BEHIND IT

#

WITH THE PARALLAX EFFECT WINDOWS HAVE!

sleek aurora
#

silly

boreal current
#

THATS THE THING!

#

i want it to NOT be a yellow block!

sleek aurora
#

oh that's what you HAVE

#

uhhhh

boreal current
#

i want there to be a skybox simulated INSIDE of those silly yellow blocks!

sleek aurora
#

if you get an answer let me know cuz I actually have been trying to figure this out

sleek aurora
#

I know enough but I have no clue how this is done

boreal current
#

And for it to work on square, Adjustable in size, position, ect.. parts

#

I have the model! So that aint an issue :3

boreal current
#

I still need help with this btw

#

So just... gotta bump it....

boreal current
#

Bump

prime basinBOT
#

studio** You are now Level 2! **studio

boreal current
#

Ok

zealous loom
# boreal current Ok

just add an mesh, (not specialmesh), add the SIZE you want but set the z,x negative + add an decal then set the decal RGB into 0,999,0 to make it brightnen

boreal current
#

i mean like

#

it has to simulate the skybox,

#

with its dark color too

#

like there is just a hole in the thing

#

without it showing building above the window

boreal current
#

bump

boreal current
prime basinBOT
#

studio** You are now Level 3! **studio

tawny light
#

oh.... :P