Help with an outdoor rain system

I’m looking to create a system in which there is a rain effect on the screen if the player is outside of a building (not underneath any bricks).

I already have a rain system, but I’m unsure of how to check if the player is underneath a brick. I think it might have something to do with “Ray Casting”, but I am unfamiliar with it and don’t know where to start.

Is Ray Casting the best way to do this, and if so how does it work?
Thanks, ok_wannabe

3 Likes

Raycast


You can cast rays above the player’s head, make sure the ray is high enough. Looping it appropriately shouldn’t be a problem.

The triggers should be done through LocalScript.

A question like this has already been asked before.

Please search first before asking. Also, you can ignore every post below 7. The debate there isn’t really relevant for you to look at.

Thanks for the quick answers colbert and Operatik.

I’ll look into the plugin