Hi, I'm trying to make a small planet that has localized gravity like king Kai's planet from dragonball, but it is very glitchy. When you first spawn in it flings you off into the void and when you respawn it somewhat works but makes you slip after a certain point. In the video I show the code for both local scripts. I am not at all an experienced scripter and I barely know what I am doing, I only have followed a couple of tutorials so help would be greatly appreciated, ty
#Localized gravity on a sphere
1 messages · Page 1 of 1 (latest)
p.s. the workspace gravity is 0 to accomodate the planet gravity but now you can't jump
roblox's default humanoid always tries to stay upright so youll either have to rotate everything in the world except the player or make your own custom humanoid controller
So what does that exactly mean, what should I do
again im a beginner
either
- rotate everything on a localscript except the player (if you want the player to not always be at the top and actually move then rotate the camera as well)
- write your own humanoid/player controller
this isnt a task for a beginner really
Okay thank you anyways i appreciate your help
you are on the right track mostly for the 2nd variant, its just that the humanoid constantly tries to rotate itself back and it if sees that the character is upside down it sets its state to physics ragdoll which is why the character's animations stop for a bit sometimes
For the humanoid controller, is that like a rig I need to modify?