Hey guys this is a pretty straightforward issue im having due to inexperience. In my games I keep trying to do a menu that uses a camera to show scenery and whatnot like prison life where it shows the outside of the building from in the air. But everytime I try scripts I feel like should work. It does nothing.
I usually try to do a local script inside of startergui and use this script
local CamPart = Workspace.CamPart (Block used as a camera)
local Camera = Workspace.CurrentCamera
Game.Players.PlayersAdded:Connect(Function()
I’ve also tried switching the camera type to fixed with a parts cframe but nothing does anything. The only time I’ve gotten a cam to work is with a click detector where it switches to a fixed camera for a second but nothing useful for a title screen. Any help is appreciated and I know someones probably asked this question before but I couldn’t find anything and just want help with it now.
local CamPart = Workspace.CamPart (Block used as a camera)
local Camera = Workspace.CurrentCamera
Camera.CameraType = “Scriptable”
Camera.CFrame = CamPart.CFrame
do you have any other camera scripts in your game? They can of course mess with the currentCamera.
I don’t think I’ve done non-triggered camera changes before. Will try it tommorow if your issue isn’t fixed.
In the meantime you could try to do WaitForChild on your variables to see if maybe the game hasn’t loaded the variables correctly.
Yeah. @Coryiodine Try to do this with a WaitForChild:
local CamPart = Workspace:WaitForChild("CamPart")
local Camera = Workspace.CurrentCamera
Camera.CameraType = “Scriptable”
Camera.CFrame = CamPart.CFrame
The game does put you in first person mode but I wasn’t sure if that’d effect it as it’s just moving the camera somewhere else, you know? but im not sure. But yeah If theres no solution tomorrow then ill still need help lol thanks