Check if object is on screen

Is there any way to check if a part is visible on the player’s screen, whether it be in first or third person?

1 Like

Let me get this straight your trying to see if a player can see a block if its transparent or not?

If that’s the case then here:

local block = workspace.block

if block.Transparency == 0 or block.Parent == workspace then
    print("ay you see the part!")
else
    print("rip you don't see the part!")
end
3 Likes

Can you please clarify whether you are checking to see if the part is transparent -or- if you are checking to see if the part is in range of the player’s view? This taking walls and facing direction into account?

1 Like

Proligant’s post here should probably be your solution

3 Likes

I’ll see if this works when I can. Thanks!
Oh and do you know if this checks if it’s behind a block?

1 Like

Thought I clarified it enough with my wording. I meant if it’s on the player’s screen.

1 Like