Hi,
Today i want to know, how to make a knockback when player touched part, I have search a solution in DevForum already, but it seem i don’t see the thing that related to my problem
Thanks
Hi,
Today i want to know, how to make a knockback when player touched part, I have search a solution in DevForum already, but it seem i don’t see the thing that related to my problem
Thanks
I think what we could do is take the Character’s LookVector to create the knockback that way? So once the Bomb explodes, it’ll create the knockback force back for those who touched the explosion
What I would do is once the bomb explodes , create a region3 on its explosion field for a few seconds(or even less) then find the parts in region3 and get the characters near it and then apply a body velocity to the Character’s HumanoidRootPart whose direction will be the opposite of its look vector.
But if player didn’t look at the bomb, The player would knockback back to the bomb area
Well you have to apply the Direction as the Direction of the explosion.
How to get direction of the explosion
Well its based on how you script your bomb .
I guess he is making his own custom explosion.
Yes, I’m making my custom explosion.
Are you talking about custom visual explosion or custom knockback?
You could get the direction between the player and the part touched as a unit vector, and then apply velocity to the player using the unit vector to send the player in the correct direction.
Touched here will be not a good choice.
I’m talking about knockback that happen when people touch the explosion
Direction vector between two parts? , This might help you get the Direction from the bomb to character , then apply the velocity as that direction multiplied by speed.
I don’t understand the problem. Are you trying to simulate a custom visual explosion or a custom knockback? If you’re doing a visual explosion, you can just use the Explosion class and the property Visible
to false. If not this then I don’t see a reason why you would want to create a custom knockback if it already exists.
Thank you very much, I’ll try this
I don’t want to use Explosion class, It’s do too much knockback
In that case, you can just change the BlastPressure
of the explosion?
Yes, but i still don’t understand something about Explosion so i decided to create my own custom knockback