How do you reset the players camera?

So I’m currently making a loading screen for a game, and the background of it is like a camera. I used a tutorial on this, but I am trying to edit it to what I need it to do. Basically, I am trying to make it so when you press a play button, it resets the player’s camera back to normal. This is the part I’m unsure how to do. :thinking:

local cc = workspace.CurrentCamera

local CameraPart = workspace.CameraPart

wait(.001)

cc.CameraType = Enum.CameraType.Scriptable
cc.CFrame = CameraPart.CFrame

local function PlayButtonClicked ()
	--not sure how to reset the players camera here
end
script.Parent.MouseButton1Click:Connect(PlayButtonClicked)
3 Likes

There is another thread:

Try doing:

cc.CameraType = Enum.CameraType.Default --(?)

Sorry I’m not an expert, simply set the CameraType back to normal

By reset do you mean setting it back to player?

Im sorry but, please dont respond just for the sake of responding.

Here is the proper way of doing so:

local cc = workspace.CurrentCamera

local CameraPart = workspace.CameraPart

wait(.001)

cc.CameraType = Enum.CameraType.Scriptable
cc.CFrame = CameraPart.CFrame

local function PlayButtonClicked ()
	cc.CameraType = Enum.CameraType.Custom
end
script.Parent.MouseButton1Click:Connect(PlayButtonClicked)

cc.CameraType = Enum.CameraType.Custom will reset the camera back to the default.

3 Likes
cc.CameraType = Enum.CameraType.Custom
cc.CameraSubject = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
1 Like

there isnt a point to set the camerasubject. As it’ll already stay since it isnt changed in the script. only cc.CameraType = Enum.CameraType.Custom is needed.

But Custom isn’t the default CameraType, is it?
Also I never used CameraTypes and hadn’t the possibility to test the code, and I also said:

You said Enum.CameraType.Default which doesn’t exist.

if you don’t know then don’t respond. It really seems like you’re post farming. Thats the same as applying to a construction job without knowing how to do basic construction.

I already said why I answered with that, @SpaghettiANDchees probably knows the default CameraType, and I said:

So the OP probably understood

Also I’m not post farming, I’m simply trying to help

And you also didn’t answer my question:

If you dont know how to be respectful, then dont respond, which is something that you dont seem to know how to do at the moment.

Just say why he is wrong, you do to need to go on about it just because he is.

5 Likes

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