I am trying to position a brick on the map relative to the position I click on the viewport.
There is a function to place GUI elements based on world position via WorldToViewportPoint
*However I want to know if there is an opposite feature? * ViewportToWorldPoint feature?
Kinda, you’d either have to use mouse.Hit or use camera:ViewportPointToRay().
https://developer.roblox.com/en-us/api-reference/class/Mouse
https://developer.roblox.com/en-us/api-reference/function/Camera/ViewportPointToRay
Viewport to ray sort of works, but I need to be able to click my mouse on my minimap and place down an object from that position.