Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Rotatable character on a sphere?

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

1 comment

0

You need to show us that you have tried using a script first, we can't just make it for you, also maybe make the sphere move instead of you, like an illusion

1 answer

✓ Accepted answer

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:

2 comments

0

afaik GetMass is not a method of Model. You'll have to iteratively get the total mass of the model by doing it for each part.

0

Well, son of a cheesecake maker.

This discussion is preserved as it was. New answers, comments, and votes are closed.