Script part not working

So I have made this code its not working for some reason??
there is no error too.
here is a picture so you guys help me fix it!
help is appreciated :grinning:
I’m making a gun game if it helps!

You just said Camera.Camera subject without a .game or a variable.

1 Like

lemme Show you that whloe Script

Try this!

local player = game:GetService("Players").LocalPlayer or game:GetService("Players").PlayerAdded:Wait()

local Character = player.Character or player.CharacterAdded:Wait() or workspace:FindFirstChild(player.Name)

local CurrentCamera = workspace.CurrentCamera

CurrentCamera.CameraType = Enum.CameraType.Custom

if Character then

CurrentCamera.CameraSubject = Character:WaitForChild("Humanoid")

1 Like

Yes thanks for the script im greatful!

1 Like

No problem, im here to help! If you have any question just tell me!

1 Like