-- Connecter les événements pour les effets de mouvement

game:GetService("UserInputService").InputBegan:Connect(function(input)
	if input.KeyCode == Enum.KeyCode.Space then
		addRecoil(Vector3.new(0, 0, -2))
	end
end)

game:GetService("RunService").RenderStepped:Connect(function()
	addSwing(Vector3.new(math.sin(workspace.DistributedGameTime * 2) * 0.01, 0, 0))
	if humanoid and humanoid.Health > 0 then
		updateCamera()
	end
end)
