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)
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)
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