How would I make a tween that flips the player's camera upside down?

I would also like to know if it’s possible to make it so controls are reversed using a script. All help is appreciated!

I believe this is what you might need: Reversing the controls - #10 by task_cancel

  • Add a LocalScript inside StarterCharacterScripts.
  • Put that code inside the LocalScript:
local camera = game.Workspace.CurrentCamera -- Gets the current camera of the player.

camera.CameraType = Enum.CameraType.Scriptable -- Makes the player's camera scriptable.

local TS = game:GetService("TweenService") -- Gets "TweenService"

local TI = TweenInfo.new(5, Enum.EasingStyle.Linear) -- Change "5" to the number of seconds it'll take to fully tween the camera upside down.

local goal = {Orientation = Vector3.new(0,-180,-180)} -- The goal to which we want to tween the camera.

local Tween = TS:Create(camera, TI, goal) -- Creates the tween that'll tween the camera

Tween:Play() -- Plays the tween

Hope it helps!

I didn’t write that in the script editor, so it might give you an error. If it did, tell me.

1 Like