I want to turn the player into a physics ball that he can then roll around.
How would I go about taking control of an object?
I want to turn the player into a physics ball that he can then roll around.
How would I go about taking control of an object?
Try this one out:
You will most likely need to use some trigonometry for this. If you don’t know what this is, you probably should wait until you learn it in school.
To create a rolling ball, you will want to use body movers, specifically a body force could work really well.
Now to create this system, you need to take multiple things into account
The location of the camera in respect to the marble
Set the body thrust’s force in respect to the direction of WASD
This would only work with PC, and if you wanted to add mobile support, it gets a little more difficult, since you need to use the dynamic touch pad.
I’m a tad bit older than you seem to think
To clarify, what I’m struggling with isn’t moving a ball, but rather turning the player into a ball that he has control over.
Thanks
Ah ok
To “turn” the player into a ball, what you can do is use a weld, and weld them to the ball.
Make sure the ball is hallow, or they will do weird things lol.
The other way to do this, would be to copy the player’s character, weld them to the ball, then just use a custom camera that is set on the ball.
Yeah ah.
And then where do i control it? I need access to UserInputService, but do I have to move it server-side?
Because it’s movement, you want to control it on the client.
All movement should be done on the client so it is smooth, with no delay
UserInputService or ContextActionService will work just fine for getting the inputs.