Physics-Based Sphere Controls Like in Veszteseg

Hello. I’m trying to create a system where the player doesn’t fall off the sphere when he rolls it, however, I run into bugs.

Here is an example of what am I trying to do:

But here is what I get:

Got any ideas how to fix this?

1 Like

Whats the code thats causing this? Also, try dividing/clamping the velocity before you set it to reduce the sensitivity of it.

Hi, I am the original uploader of the video. To fix your problem, simply have a BodyVelocity object in the player character’s torso which mimics the sphere object’s velocity if the player is “riding” it. I recomand using a RunService.Heartbeat:Conect(function() loop for this as it will update at the same time.

There are more ways to keep the player on the ball, some working even better, but this is the one that I used in the script I showcased in that vid.

3 Likes

I’m trying to re-create that but how did you make that the player doesnt fall of the ball while the ball gets pushed by bodyvelocity

i literally explained in the message above :brain::person_fencing:
also arent you in my server? why are you asking here out of all places?

1 Like

aaaaaohhhhhhhhhhhhhhh ye i forgor

no matter how hard i try i cant replicate that :sweat_smile: :smiling_face_with_tear:

message me on discord again, i will just send you the file so you can see how i did it