How To Make Camera Look At You
I made a script that changes Camera Spawn and it works
Script:
local camera = workspace.CurrentCamera --The Camera
repeat wait()
camera.CameraType = Enum.CameraType.Scriptable --Changes CameraType
until camera.CameraType == Enum.CameraType.Scriptable
camera.CFrame = workspace.CameraSpawn.CFrame --Makes Camera Go On Object
The Problem is that now when I Click A Button I cant make it go back to your own player.
Can someone Help me with a simple MouseButton1Click script.
1 Like
Try setting the CameraType back to Custom, and resetting the subject to the Humanoid.
ClickDetector.MouseButton1Click:Connect(function()
camera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
camera.CameraType = Enum.CameraType.Custom
end)
1 Like
@ExcessEnergy Yes, but reverse those two lines.
1 Like
Thanks for the catch. I somehow overlooked the order.
1 Like
@Gucci_Dabs222
copy paste what @ExcessEnergy put in, he just edited it
I would do script.Parent.whatever.MouseButton1Click:Connect(function()
camera.CameraType = Enum.CameraType.Custom
end