How can I create a similar effect with viewports?

robloxapp-20250131-2119020.wmv (1.0 MB)
How could I do this??

1 Like

You can use a for loop to automatically create viewport frames in each window.

Set the viewport frames on the part’s transparency to 1.

When a player enters the room (Possibly by GetPartsBoundInBox()), tween the transparency to 0. When they leave, tween it to 1.

Could you give me a short example?

local TweenService = game:GetService("TweenService")

local TweenInfo = TweenInfo.new("insert your tweeninfo")

local Tween = TweenService:Create("insert object inside of viewport frame", TweenInfo, {Transparency = 0))
Tween:Play()

might be be wrong cause I didn’t test

By the way, you might want it to be an ImageFrame instead of a ViewportFrame

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.