Hello everyone, today i’ve got a module for you that will make inserting and displaying stuff in viewport frames really easy!!.
To set it up, simply do this
local module = require(player.PlayerGui.Viewport)
module:Viewport(YourFrame, The Instance you want to display, a CFrame offset)
Remember, this function also returns the instance IN the viewport frame, so the function can become a variable
Example:
local module = require(player.PlayerGui.Viewport)
local object = module:Viewport(YourFrame, The Instance you want to display, a CFrame offset)
object.Transparency = 1
This module comes with error handling too, so if anything doesn’t go through, you will be notified.
Note : The CFrameOffset value is relevant to the camera, so when you change that part of the function, the CAMERA will change its CFrame and not the Object.
Anyway here’s the module https://create.roblox.com/store/asset/117724330027168/ViewportModule
hope yall enjoy it and if there are any bugs, make sure to tell me in the replies, byeee