Why does the camera type change to fixed on play?

The camera is not normal, almost in every place I edit, the camera changes to Fixed after I press play, or Start a local server.

The camera type should be custom, so it will follow the player, but instead, I just see the player in front of the camera, and I can move, but the camera won’t follow the player.

I tried looking for solutions in the dev forum, the only thing I found was to check if there aren’t any plugins in the plugins folder. And there are absolutely no plugins in there. I also tried to make a local script, that a second after the player joins, it will set the camera type to custom, which was working until now.

I did not install any new plugins, and it wasn’t like that before. What can I do to fix that?
Thanks for everyone who responds :slightly_smiling_face:

This is what happens:

3 Likes

It will be one of the following:

  • A plugin
  • A local script in the game

Disable all plugins, and all scripts, and the camera won’t change to fixed.

Then, one by one, re-enable a script, run the game, look at the camera type. If it changed to fixed in Play mode, you found the script causing it.

If you get through all the scripts, do the exact same procedure with plugins. Stop the game, enable the plugin, Play again, look at camera type.

2 Likes

Thanks for responding :grinning:, I have a lot of scripts in my game. So I used the “find in all scripts” tool, and I found nothing related to the camera or the camera type. And are you sure about the plugins? Everything was working before, just a few days ago, it was working fine. And I did not install any new plugins.
Edit: I also made this local script which finally made it work normally:

workspace.CurrentCamera:GetPropertyChangedSignal("CameraType"):connect(function()
	workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
end)

But I don’t think I need a script for that. Shouldn’t the camera change by itself to custom on play?
I don’t think my script is a good solution, because something is changing the camera and I don’t know why or from where. But I was using it to test my game because it was annoying to change the camera from the workspace each time.

Well the easy way to check if it’s a specific game, a plugin or a bug is to create a completely new place as an empty baseplate and press Play.

If it is correctly set to custom in that new empty place, then the problem is a script in your game.

Also if your script works, then it shows that something is setting the camera type to fixed, as the CameraType property changed signal would not fire otherwise. Your camera is being created as Custom, changed to Fixed by a script somewhere, and then back to Custom by your changed event.

Did you create all of the scripts and assets in your game?

1 Like

Yes, I have created all of the scripts in my game, and there’s only one script that changes the camera, but not to fixed, it changes it to scriptable, and I found out something about it. I believe it is related to Team Create. Because:

  1. I created a new place, everything was fine.
  2. I published the place, everything was fine.
  3. I enabled team create, the camera was set to fixed.

Is it a studio bug?

Edit: I pressed play a couple of times, sometimes it did happen, sometimes it didn’t.

This happend:

It also happened with the second player in the local server:

Does it only happen in Studio or does it happen if you press Play on the website?

If only studio and only team create places then you may have found a studio bug. If so, post in #platform-feedback:studio-bugs with a summary of all the info and all the things that have led you to believe it’s a studio bug.

Yes, that happens only in studio and in team create places. Thanks for answering I will post it there.

1 Like

I have no idea if this will work but try looking in Documentation - Roblox Creator Hub about the camera movement

If your working on camera focus here’s the 1st link Camera | Documentation - Roblox Creator Hub or just the camera Camera | Documentation - Roblox Creator Hub

1 Like

I have posted a bug report, I don’t want to change anything in the camera, it changes by itself to Fixed, and the camera does not follow the player at all. It happened only in team create places to me.

Is it the game camera? if it is I recommend putting it on Default(follow)

It’s the workspace current camera, which should be automaticly set to custom when the player joins, only in studio it should be fixed, but in the client(player) it should be custom.

Try looking here: Script Error [CFrame]

I am not sure that you understand. I don’t want to change the camera at all. It should be working completely normal. But there’s a bug that changes the camera type, and none of my scritps or plugins do that. It should b set to custom on play and to fixed on edit. But it stays on Fixed even on play, it wasn’t like that before. That’s the bug, and I sent a bug report about it, because it happens only in team create places.

Well im not really sure, cause I have never had a problem with that before.

1 Like

I added screenshots of the bug, they are all in client mode. The camera simply does not follow the player, something changes it. And it happened to me only in team create places.

1 Like