Have a grenade stick to a surface it hits

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

  2. What is the issue? Include screenshots / videos if possible!

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I want to achieve a grenade that when thrown, it sticks to the hit surface, the issue is I don’t know how to do that… I tried getting the mouse.Hit position and welding the grenade to the position but if the player aims in the air that wouldn’t work… I could maybe just make the grenades range Humrp.CFrame * cframe.new(0,0,40) and have it welded to the end of it , but then it wouldn’t have the curve of the throwing… idk I’m just talking nonsense here, can anyone give me an idea on how to do this?

Maybe anchor the grenade when it hits a part (use the touch event)?

Instead of anchoring you can create a weldconstraint to make it stick to the touched part. That way it would also stick to moving parts

How would i exclude my character from the .Touched?

check if its a descendant of the owner

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.