Changing camera

Oh ye, because it is inside the get property signal changed it wont do anything because it didnt change, over here

script.Parent.Play.MouseButton1Down:Connect(function()
	IsCurrentlyOnPart = true
	wait()
	game.StarterPlayer.StarterPlayerScripts.Camera:Destroy()
	game.Lighting.Blur:Destroy()

end)

change it to

script.Parent.Play.MouseButton1Down:Connect(function()
	IsCurrentlyOnPart = true
    workspace.CurrentCamera.CFrame = CFrame.new(game.Players.LocalPlayer.Character.CFrame)
	wait()
	game.StarterPlayer.StarterPlayerScripts.Camera:Destroy()
	game.Lighting.Blur:Destroy()

end)

Also I made a mistake on the CFrame area, change this part too

local IsCurrentlyOnPart = false

workspace.CurrentCamera:GetPropertyChangedSignal("CFrame"):Connect(function()
    if IsCurrentlyOnPart == false then
        workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
        workspace.CurrentCamera.CFrame = workspace.CameraPart.CFrame
    else
        workspace.CurrentCamera.CameraType = Enum.CameraType.Attach
        workspace.CurrentCamera.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
        workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.HumanoidRootPart
    end
end)

This should work

19:34:17.321 - CFrame is not a valid member of Model

Models do not have CFrame is what its saying.

did you change the property signal changed too? I had to get the CFrame of the humanoid root part instead of indexing the humanoid

Character is a model, models do not have CFrame. I have to go now so do not expect a reply for a while.

So, the script did not work. Why not?

sorry it was 3 am, here is the script

script.Parent.Play.MouseButton1Down:Connect(function()
	IsCurrentlyOnPart = true
    workspace.CurrentCamera.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame)
	wait()
	game.StarterPlayer.StarterPlayerScripts.Camera:Destroy()
	game.Lighting.Blur:Destroy()

end)

08:12:59.731 - Players.Ulxqra.PlayerGui.LoadingScreenGui.LoadingScreenFrame.Script:18: invalid argument #1 to ‘new’ (Vector3 expected, got CFrame)

@greatneil80 should I change it to Vector3

CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)

my bad bro.

Now its saying the opposite
15:20:10.160 - Players.Ulxqra.PlayerGui.LoadingScreenGui.LoadingScreenFrame.Script:36: invalid argument #3 (CFrame expected, got Instance)

@greatneil80 its saying it got instance and when I say CFrame is says got CFrame and when I put Vector3 it says something else.

maybe this might work?

workspace.CurrentCamera.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
1 Like

17:52:05.212 - Players.Ulxqra.PlayerGui.LoadingScreenGui.LoadingScreenFrame.Script:36: invalid argument #3 (CFrame expected, got Instance)
idk why it is saying this as you added .CFrame

Could I see what is on line 36, is it that same line or a different line, it should have worked, maybe WaitForChild can solve this

workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.HumanoidRootPart

Add .CFrame to this line, would solve it?

I added CFrame to line 36 and now its erroring 35. So I added CFrame to line 35 and now its erroring because I have CFrame. So I deleted CFrame and now its erroring I DON’T have CFrame.

I deleted the script and made something else. Thanks for helping though.