script.Parent.MouseButton1Click:connect(function()
if script.Parent.bool.Value==false then
local target = workspace.Model.point1
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = target
camera.CoordinateFrame = CFrame.new(target.Position+Vector3.new(0,3,4),workspace.Model.point1.Position)
script.Parent.bool.Value=true
print("na")
else
print("ye")
local plr=game.Players.LocalPlayer.Name
local camera=workspace.CurrentCamera
camera.CameraSubject=workspace[plr].Humanoid
script.Parent.bool.Value=false
end
end)
Yes so I want to make it so the camera goes to the part(which works). But I then want to make it so if you click the button again the camera reverts back to the humanoid but this part doesnt work. It prints ye so I am not sure what the problem is.
