I have a rectangle constructed from four parts, I want these parts to be of the corner of the screen. Im trying to make a script that will zoom out until one of them is on screen. The return true is never getting called and I am unsure why.
“”"
local function partIsOnScreen(player, part, fov)
local target = part
local _, withinScreenBounds = workspace.CurrentCamera:WorldToScreenPoint(target.Position)
print("e")
if withinScreenBounds then
return true
end
end
“”"