Argument 3 missing or nil

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    A camera shake script
  2. What is the issue? Include screenshots / videos if possible!
    Argument 3 missing or nil & no shaking
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    None, no
    I’m making a camera shake script with cam rotation but won’t work.
    Script:
while wait() do
	workspace.Camera.CFrame = workspace.Camera.CFrame * CFrame.Angles(math.random(-workspace.In.Value/1000, workspace.In.Value)/1000, math.random(-workspace.In.Value, workspace.In.Value)/1000) --ERROR
	game.Players.LocalPlayer.Character.Humanoid.CameraOffset = Vector3.new(math.random(-workspace.In.Value/2000, workspace.In.Value)/2000, math.random(-workspace.In.Value, workspace.In.Value)/2000)
end
1 Like

you only have 2 out of the 3 arguments needed for CFrame.Angles, you forgot to add the other rotational axis

2 Likes

I think your problem was with the camera, it was Camera, not CurrentCamera

while wait() do
	workspace.CurrentCamera.CFrame = workspace.Camera.CFrame * CFrame.Angles(math.random(-workspace.In.Value/1000, workspace.In.Value)/1000, math.random(-workspace.In.Value, workspace.In.Value)/1000) --ERROR
	game.Players.LocalPlayer.Character.Humanoid.CameraOffset = Vector3.new(math.random(-workspace.In.Value/2000, workspace.In.Value)/2000, math.random(-workspace.In.Value, workspace.In.Value)/2000)
end

I fixed it! Thanks for your help.