Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I check if a player is anywhere above a certain part?

Asked by
trecept 367 Moderation Voter
6 years ago

I'm trying to make a part so when you're on top of or above the part, you slowly take damage no matter how far up you are, as long as you're above the part. I'm not sure how to do this and would prefer this way instead of making an invisible part over the part. Is there any way?

1 answer

Log in to vote
1
Answered by
yyyyyy09 246 Moderation Voter
6 years ago
Edited 6 years ago

You could use Ray's by sending a ray directly below the player, then find which part it is using

http://wiki.roblox.com/index.php?title=API:Class/Workspace/FindPartOnRay

For more about rays, here's the wiki page, that has everything you need to know about rays

http://wiki.roblox.com/index.php?title=Ray

Ad

Answer this question