Hello everyone, I was wondering if it is possible to make a sphere that when a player walks on it they automatically can walk on its surface, even go upside down. I thought about using the Gravity property but then I think it will just pull the character towards the sphere not allowing the player to move around it freely. Anyone know a very plausible solution? Kind Regards, addictedroblox1414
The obvious solution is to move everything else instead of you, because it means you don't have to worry about custom controls. However, if you use a pair of BodyMovers then you can solve that easily.
Using a BodyGyro, orient the Torso towards the center. That's easy enough, because assuming a BodyGyro takes a CFrame you can do it all from the constructor
BodyGyroRotationPointThing = CFrame.new(Torso.Position, Sphere.Position)
Using some other BodyMover like a BodyForce, create an artificial gravity towards the sphere. This can once again be done with the CFrames.
Force = (Vector3.new(0,192.6,0) + CFrame.new(Torso.Position, Sphere.Position).lookVector * ArtificialGravityMultiplier) * TotalCharacterMass
Of course, you'd have to set the ArtificialGravityMultiplier
to the artificial gravity for the sphere. And you'd have to get the Character mass c: