Trident system like Minecraft

Hello! i’m doing Trident for my game. I already scripted throwing, hitting player and etc. But i don’t know how can i make loyalty system like in Minecraft trident. I’ll use BodyForce for doing loyalty system

Minecraft trident loyalty system:
word-image

So i don’t know how can i move BodyForce to player’s Right Arm position.

6 Likes

Really you could do basically like a tween, take the last position of the player’s right arm, then tween (or whatever you want to do) and just move the trident back to that position. Or you could mess around with constraints, and attach it to the trident and right arm. That would allow you to pull both together, (I believe it’s a cylinder that would be most useful.)

3 Likes

I’m not sure but would a rope or spring constraints work? You might need to adjust it a bit but it could work

1 Like

I think using BodyForce might good than other properties

1 Like

You should use VectorForce instead it say BodyForce is depreciated. If you use VectorForce you can use a script that attaches an attachment to the player and the trident. Then link them to the VectorForce. Final you can use a touched event to detect when the trident has hit the ground and when the. add acceleration to the VectorForce to retract the trident

1 Like

i already have hitting to ground system but i don’t have loyalty system

1 Like

What I said is a loyalty system it uses VectorForces to retract the trident to the player

https://create.roblox.com/docs/reference/engine/classes/VectorForce

1 Like

okay but i wanna do with BodyForce

1 Like

I agree with @Mashmello_06. Using VectorForce or BodyForce can cause the trident to get stuck on the way behind some other part. Either you can use Tweens or still use VectorForce but disable collisions for the trident.

The nice thing about Tweens though is that they are perfectly predictable. Forces can be disturbed by random noise in your game, making the trident go the wrong way or get stuck. Tweens don’t have this problem, since all they do is interpolation between two states (from position A to B).

2 Likes

Thanks for all help but i solve the problem with BodyPosition and BodyGyro

1 Like

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