local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
player.CharacterAdded:Wait()
player.Character:WaitForChild("HumanoidRootPart")
workspace.clickpart.ClickDetector.MouseClick:Connect(function()
camera.CameraSubject = player.Character.HumanoidRootPart
camera.CameraType = Enum.CameraType.Follow
camera.FieldOfView = 40
end)
game:GetService('RunService').Stepped:Connect(function()
camera.CFrame = CFrame.new(player.Character.HumanoidRootPart.Position) * CFrame.new(0,0,30)
end)
I want to make it so that when the player clicks the click detector, his camera will change to this 2d one. There's nothing in the output, but it doesn't work. Can someone figure it out?
