This script won't connect
1 | script.Parent.MouseButton 1 Down:Connect( function () |
2 | game.Workspace.CurrentCamera.CameraSubject = |
3 | game.Players.LocalPlayer.Character.Humanoid |
4 | game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Custom |
5 | end ) |
You miss typed
Should look like this:
1 | script.Parent.MouseButton 1 Down:connect( function () |
2 | game.Workspace.CurrentCamera.CameraSubject = |
3 | game.Players.LocalPlayer.Character.Humanoid |
4 | game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Custom |
5 | end ) |
Use a localscript
and why don't you just do
1 | game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid |
instead of indenting