I’m making a double jump script, and I got it to work but I was doing the jumping part on the client, and I want to do it on the server.
This is what I’m using for the jumping part:
local Velocity = HRP.Velocity
HRP.Velocity = Vector3.new(Velocity.x, jumpForce, Velocity.z)
Now this works on the client, but on the server it like stops them and is a completely different result compared to the client. Why is this happening?
I saw examples of using the humanoid state but I’d prefer to stick with Velocity since I can change the max jumps and jump force easier, but I’ll give it a shot.
HumanoidRootPart would be physically owned by the client, so I would guess your problem is related to that. I would just delegate this to a LocalScript. You could still have the server trigger it though. Just use a RemoteEvent or something. Could even just use a BoolValue.