I looked it up and found nothing. Please help?
Step 1: Put a ClickDetector in a part. Step 2: Put a script in the part with the following code:
1 | local part = game.Workspace.Part -- Replace "Part" with the name of the part. |
2 |
3 | part.ClickDetector.MouseClick:connect( function (player) |
4 | local cam = workspace.Camera |
5 | cam.CameraType = "Custom" |
6 | cam.CameraSubject = part |
7 | end ) |