Alright so.
I’m trying to make a cover system like in GTA when you get to a corner you crouch down a bit and stick to the wall.
The thing I’m looking for is the way to detect when a player is at the ending of the part or at a corner with raycasting.
1 Like
You could place some smaller parts to edges and corners of the part, then detect that
Yes, but not so performance friendly as I’d have a lot of walls. I need to do that with raycasting.
1 Like
You could raycast downwards, a few studs infront of the HumanoidRootPart. This way, you don’t need to get the ending of the part, but you can tell if your on a cliff.
3 Likes
system
(system)
Closed
May 10, 2023, 2:25pm
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.