How to rotate Workspace and tween it

So, I’m trying to make this effect where gravity has been rotated, yes I know confusing.
I tried searching a way to actually change the Workspace’s gravity to make it more realistic but I’ve come to the conclusion it is not possible. (I think)

So then I came to the conclusion that I need to rotate the workspace and yk, I tried out of test/play mode by changing the workspace’s WorldPivot orientation and it worked!
Now with it confirmed I tried tweening it and no matter how many ways I tried to do it, it never worked.

So, is it even possible, and if it is, can someone tell me how to do it? Thanks.

https://gyazo.com/bfa310c29acf61656b6ec8dde2a5e724

local TweenService = game:GetService(“TweenService”)

local Info = TweenInfo.new(

5,

Enum.EasingStyle.Linear,

Enum.EasingDirection.Out,

1,

true,

30

)

local Goals = {

CFrame = CFrame.fromOrientation(math.rad(90),0,0),

}

local tween = TweenService:Create(workspace.WorldPivot, Info, Goals)

tween:Play()

I am new to posting in the forums so sorry if I commited any dumb mistakes.

1 Like

You are trying to tween the workspace, instead try tweening your baseplate, as shown in the video.

The gravity wouldn’t change if they tweened the baseplate?

True, but gravity also won’t change with tween, you will need to use physics instead, since it is tied to gravity.

Oh, right.
A different way to do this would just to have your entire map be a model, have the world pivot position be 0,0,0 and just rotate it whenever. It would still give the effect of gravity changing without it actually having to change.

The video was recorded in an empty baseplate as to demonstrate, I got a pretty big map in the game im trying to add this feature on. Thx for replying!

This may or may not work, I will try this!

I FIGURED IT OUT!!!

It’s pretty simple, just…

Don’t try to rotate the Workspace.

Make your map a model and rotate it with the method I found in this topic!

I was just over-complicating myself trying to use the workspace!
Live simple, live happy.

Thanks to everyone who replied!

You’re welcome!

characters

Wait! Don’t use :SetPrimaryPartCFrame(), it’s deprecated! Use :PivotTo() instead

2 Likes

Damn I didn’t know that… Cool to see it doesn’t actually affect the code. Lots’a thanks!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.