Hi! I’m making this city game. I want to customize my welcome screen so it can show different parts of the city (like the Jailbreak main menu). It would be very appreciating if you have an idea how to make a camera switch areas.
1 Like
You can just get the player’s camera on a localscript by saying:
local localCamera = workspace.CurrentCamera
Once you do this, you will want to set the CameraType to Scriptable by saying:
localCamera.CameraType = Enum.CameraType.Scriptable
After that, you can set the camera’s CFrame to a part by saying:
localCamera.CFrame = Part.CFrame
You can then tween the camera between different parts around the map, use Tween.Completed to tell when the camera is done tweening around the parts of one part of the map, and you can change the camera’s position to another part of the map when all the tweens to the parts in one area of the map are completed.
2 Likes
Okay I’ll try and see if it works.
I tried what you did and your code worked great. Thanks so much.