Best way to manage interactions between multiple item types

I’m wanting to know the best way to maintain interactions between a large number of different objects. For example, between characters, pets, house objects, vehicles, npcs, etc.

I’m currently using RenderStepped and only doing checks on distance between pets. However I want it to check for any item that can have an interaction with it, however I feel RenderStepped could cause problems in the future and I’d like to try avoid using the loop.

Example like this, where a number of interactions are visible on screen at once (with one being E and the others click based)


This only shows furniture interactions, but there’s also the same thing with pets and other players. So how can I manage all these at once, without having several loops checking each individual item type (players, pets, etc.)

1 Like

Can you use BillboardGui.MaxDistance?

I could, I don’t really wanna have a thousand billboardguis all located inside the PlayerGui tho :sweat_smile:

If they are billboards, then the MaxDistance can be set, even if they don’t directly belong to a player.