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

How can I move a player within a rotating cube?

Hello, I´m developing a game in which a cube will be rotating while the players must stay as long as possible within it.

The problem that I have is that when the cube rotates, the player moves towards the cube making it impossible to fall.

¿How can I make the player stay in a side of the cube without moving upwards like as shown in the gif? Thank you!!

GIF: https://s1.gifyu.com/images/Help.gif

3 comments

0

Shouldn't the cube rotate faster than that shown in the GIF - or does a similar effect persist?

0

Yes, it goes faster and faster as time elapses.. but it gives me the same issue no matter what speed, actually when it goes faster the player even jumps when it reaches an edge to the next edge

0

Instead of a cube, use a ball.

2 answers

Increase the speed in which the cube is rotating. This will make it harder for the player to stay on and will prevent that from happening.

2 comments

0

I believe the cube's rotation quickens as time elapses to increase difficulty of gameplay.

0

It does the same thing no matter what speed I apply :/

Ok, so I already solved my question thanks for your help anyways guys!

For future references, if you want to make a game where an object will be rotating and a player will be on that object, use BodyMovers to place and rotate the object instead of working directly with the position and orientation of that object.

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