Camera not working when i join the game

So when i playtest the game in roblox studio, it works just fine, but when i join the game on roblox, this is what happens:


if anybody could help me that would be awesome

1 Like

Could we view the code so we actually know what’s happening. Have you tried checking the dev console for any errors?

From what it appears, either you set the CameraType to Fixed, or your camera doesn’t have your character as the CameraSubject.

When starting the game, make sure your camera is set in Enum.CameraType.Custom and that you wait for you character to exist before assigning it in CameraSubject

1 Like

how would i do that? Srry im not good at scripting :confused:

You could just create a simple local script in StarterPlayer.StarterCharacterScripts.

You can then put in the following code:

local character = script.Parent
local camera = game.Workspace:WaitForChild("Camera")

camera.CameraType = Enum.CameraType.Custom
camera.CameraSubject = character

This is based off an assumption so it may or may not work.

yeah it doesnt work :confused: oof idk man

Was there an error when you tested it out?

well it works when i test it in roblox studio but it doesnt in the actual roblox game when i join it

but that was how it originally was

Do you know any other scripts that could manipulate the camera? That may also be causing the issue.

I only have 5 scripts, none of them are free models, and they all dont interfere with the camera, so i dont think so

Have you tried opening the DevConsole in the game to find out if there’s an error?

It can be opened by pressing F9

Also, don’t forget to Publish the Changes to Roblox, it may only work in Studio since you didn’t publish the changes to the actual game

i figured it out and changed some things :slight_smile: It’s working now

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.