Fake Interiors
(module)
(Link to model containing module)
This module allows you to add windows to your game that include randomized, fake interiors.
These interiors do not occupy physical space and can be used in bulk with a minimal effect on performance.
You can customize the quality, distance rendering and transparency of the windows in groups, make your own rooms, and even room categories.
To use the module, acquire the model from here and ungroup.
Feel free to delete ThumbnailCamera and require the module as normally.
Iād also like to credit @EgoMoose for his viewport math, originally forked from his portal system which can be found here
Example Code
local Windows = require(WindowModule)
local Controller = Windows.Setup(60, "Normal")
local Window = Controller:AddWindow(workspace.WindowPart,50)
Controller:SetAllTransparency(.5)
task.wait(5)
Controller:DisconnectWindows() -- necessary
Controller:Disconnect()
Documentation:
Objects:
- Controller
- Window
Constructors:
- Module.Setup(Radius:number, RoomsType:string?) -> Controller
- Controller:AddWindow(WindowPart:BasePart, Quality:number?) -> Window
Methods:
- Controller:ToggleAllRunning(Enabled:boolean?)
- Controller:ToggleAllVisible(Enabled:boolean?)
- Controller:SetAllTransparency(Transparency:number)
- Controller:DisconnectWindows()
- Controller:Disconnect()
- Controller:ChangeMaxRadius(Radius:number)
- Window:ToggleRunning(Enabled:boolean?)
- Window:ToggleVisible(Enabled:boolean?)
- Window:SetTransparency(Transparency:number)
- Window:Disconnect()
āRoomsTypeā, the argument in Module.Setup, Is the name of one of your categories in the Rooms folder.
Please, let me know what your thoughts are on this module or if thereās anything you would like to see added.
[UPDATE]: If you are having trouble setting up the module, please try and contact a scripter you know, as they will likely not have trouble helping you.
Fixed math and critically reduced window lag, added more optimizations.