Camera not following player, no camera script

I’m having an issue where my camera isn’t following the player’s head, and I was going to have a camera script but this issue randomly happened. The only thing in my camera script is this:

local player = game:GetService("Players").LocalPlayer
local character = player.Character
local RunService = game:GetService("RunService")
local camera = workspace.CurrentCamera

(I say no camera script because it’s just variables)

did you check CameraType of the camera in workspace if it is changed?

I already did that by creating a new game and checking the properties, they’re the same besides field of view

Is it possible for you to send the place file so i can take a closer look?

just tell me when you’re done with it so i can delete the message, i don’t want too many people having my game files…

yea you can delete now im taking a look at it rn

ok so i can’t really find where the issue is but i found a way to fix it just by put 2 more lines to that camera script:

local player = game:GetService("Players").LocalPlayer
local character = player.Character
local RunService = game:GetService("RunService")
local camera = workspace.CurrentCamera

wait()
camera.CameraSubject = character:WaitForChild("Humanoid", 3)
2 Likes

I agree with @tienke, that could fix it, but, not because the root issue is found. Actually I think that the camera could be taken by different scripts, and by adding the wait(), you could be giving enough time for player to load in order to make it work, doesnt mean that wont cause unexpected behaviour on different things

1 Like

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