How do you make WorldToScreenPoint work with multiple targets?

Hi. I’ve been developing in this feature in my game as some sort of dr. who weeping angle vibe. But I have no idea how I could do this for multiple parts. Does anybody got an idea?

local Camera = game.Workspace.CurrentCamera

while wait() do
	local _, withinScreenBounds = Camera:WorldToScreenPoint(game.Workspace.WorldPart.Position)
	if withinScreenBounds then
		spawn(function()
			wait(1)
			game.Workspace.WorldPart.Size = Vector3.new(5,5,5)
		end)
	end
end
1 Like

You could try converting all the parts individually? Just use a for-loop.