Launch player fowards

Hello. I am trying to make a script that if the player clicks shift and x at the same time the player is launched forward. Here is an example:

I have tried setting a body force to the torso of the player but it does not work. and I do not know any r6 ragdoll scripts that are compatible with that type of movement.

2 Likes

could you show us the bodyforce script? Also I have already seen and used r6 ragdoll scripts, you just usually have to do the “unragdolling” yourself.

I dont have much of a script because I dont know how to make the body force go foward detecting where the player is looking. and I used a instance.new bodyforce in StarterCharacterScripts

There’s quite a bit you have to know to code such a thing, at this point one would have to write out the script for you

I know how to code just not to much. And I wanted to know what I would need to do.

Well, if that’s the case you’d have to use a localscript to get the players input, from there make it fire a remotevent, then from there make the server find the players humanoidrootpart, then do cframe lookvector * however much you want them to go forward, and also load the animation, (preferably do it on the client), then make it do a bodyforce, of that value so it launches itself forwards.

1 Like

You may want to do further math/ tinker with this method I’ve provided, but I’m just giving you the basics of it I suppose. (Also note, the bodyforce will be in studs, so make it go at this studs per second sorta? dunno, haven’t really messed with BF’s that much.)

1 Like

why would you use a remote event for such an action though, might also just do it on the client so it isnt sluggish

1 Like

ah yes, trust the client with the movement : |, that may cause issues in the future if you ever attempt to make an anticheat.

you do realize that hackers already have full control over the characters movement right?

and if you were to try and check the movement to see if it is in line with this and that, you’d have to rescript it in that regard.