Return to user the camera and get the tilt back to normal

Hey there! This days I’ve been trying to learn about Cframes, and cameras, I’ve been also searching posts in the DevForum that could help me learning, but now I have a problem:
I’m using this for the camera

Making Camera move slightly with you moue

And I don’t figure out how to like when you press a Button GUI the camera returns to the player and the tilt disspears I’ve been trying adding to that script MouseButton1Click but don’t work maybe I’m doing something wrong, could someone help me?

How can I do when I press that button the camera and tilt goes back to normal?
Have a good day! :slight_smile:

Store the camera’s ‘CFrame’ property before manipulating it.

How and where? Where should I place that?

Hey would this help
That’s some code which sets the camera back to normal ,but to make it on a press of a button you’d have to do this

local Players = game:GetService("Players")
local button = script.Parent

local localPlayer = Players.LocalPlayer
local function resetCameraSubject()
	if workspace.CurrentCamera and localPlayer.Character then
		local humanoid = localPlayer.Character:FindFirstChildOfClass("Humanoid")
		if humanoid then
			workspace.CurrentCamera.CameraSubject = humanoid


and this is the whole local script you’d be putting in the gui button

1 Like

Yep this worked thank you sooooooo much!!! :slight_smile: